blob: 3b0a3c90e352d119679b4e38acd8542c6adba907 [file] [log] [blame]
include MCONFIG
COMMON_OBJS = main.o mount.o portmap.o sunrpc.o
PROG = nfsmount
LIB = libnfsmount.a
LIBS = $(KLIBC) $(LIBGCC)
OBJS := $(COMMON_OBJS) $(BOOTP_OBJS) $(DHCP_OBJS)
all: $(PROG) $(LIB)
nfsmount: $(OBJS) $(CRT0) $(LIBS)
$(LD) $(LDFLAGS) -o $@ $(CRT0) $(OBJS) $(LIBS)
$(LIB): $(OBJS)
$(AR) cru $(LIB) $(OBJS)
clean:
$(RM) *.o $(PROGS) core
spotless:
$(RM) *~ .*.d
ifneq ($(wildcard .*.d),)
include $(wildcard .*.d)
endif