diff options
Diffstat (limited to 'src/fnet/Makefile')
-rw-r--r-- | src/fnet/Makefile | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/fnet/Makefile b/src/fnet/Makefile index 36e95522f..91de109fa 100644 --- a/src/fnet/Makefile +++ b/src/fnet/Makefile | |||
@@ -1,17 +1,10 @@ | |||
1 | .PHONY: all | ||
2 | all: fnet | ||
3 | |||
4 | ROOT = ../.. | 1 | ROOT = ../.. |
5 | include $(ROOT)/src/common.mk | 2 | -include $(ROOT)/config.mk |
6 | |||
7 | %.o : %.c $(H_FILE_LIST) ../include/common.h ../include/libnetlink.h $(ROOT)/config.mk | ||
8 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ | ||
9 | 3 | ||
10 | fnet: $(OBJS) ../lib/common.o ../lib/libnetlink.o $(ROOT)/config.mk | 4 | PROG = fnet |
11 | $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/libnetlink.o $(LIBS) $(EXTRA_LDFLAGS) | 5 | TARGET = $(PROG) |
12 | 6 | ||
13 | .PHONY: clean | 7 | MOD_HDRS = ../include/common.h ../include/libnetlink.h |
14 | clean:; rm -fr *.o fnet *.gcov *.gcda *.gcno *.plist | 8 | MOD_OBJS = ../lib/common.o ../lib/libnetlink.o |
15 | 9 | ||
16 | .PHONY: distclean | 10 | include $(ROOT)/src/prog.mk |
17 | distclean: clean | ||