diff options
Diffstat (limited to 'src/ftee/Makefile.in')
-rw-r--r-- | src/ftee/Makefile.in | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/ftee/Makefile.in b/src/ftee/Makefile.in index fd39f0cb7..d3b92362c 100644 --- a/src/ftee/Makefile.in +++ b/src/ftee/Makefile.in | |||
@@ -1,25 +1,12 @@ | |||
1 | all: ftee | 1 | all: ftee |
2 | 2 | ||
3 | CC=@CC@ | 3 | include ../common.mk |
4 | PREFIX=@prefix@ | ||
5 | VERSION=@PACKAGE_VERSION@ | ||
6 | NAME=@PACKAGE_NAME@ | ||
7 | HAVE_FATAL_WARNINGS=@HAVE_FATAL_WARNINGS@ | ||
8 | HAVE_GCOV=@HAVE_GCOV@ | ||
9 | EXTRA_LDFLAGS +=@EXTRA_LDFLAGS@ | ||
10 | |||
11 | H_FILE_LIST = $(sort $(wildcard *.[h])) | ||
12 | C_FILE_LIST = $(sort $(wildcard *.c)) | ||
13 | OBJS = $(C_FILE_LIST:.c=.o) | ||
14 | BINOBJS = $(foreach file, $(OBJS), $file) | ||
15 | CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' $(HAVE_GCOV) -DPREFIX='"$(PREFIX)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -pie -Wformat -Wformat-security | ||
16 | LDFLAGS += -pie -Wl,-z,relro -Wl,-z,now -lpthread | ||
17 | 4 | ||
18 | %.o : %.c $(H_FILE_LIST) | 5 | %.o : %.c $(H_FILE_LIST) |
19 | $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | 6 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ |
20 | 7 | ||
21 | ftee: $(OBJS) | 8 | ftee: $(OBJS) |
22 | $(CC) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_LDFLAGS) | 9 | $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) |
23 | 10 | ||
24 | clean:; rm -f *.o ftee *.gcov *.gcda *.gcno | 11 | clean:; rm -f *.o ftee *.gcov *.gcda *.gcno |
25 | 12 | ||