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