diff options
author | 2022-06-30 09:00:15 -0400 | |
---|---|---|
committer | 2022-06-30 09:00:15 -0400 | |
commit | 70aaf6fea40ac4f4f28094cad639ec4c00897843 (patch) | |
tree | b3013b4abeaf00cde4ab63f90bdc91ef8e6520a9 /src/libtracelog | |
parent | test/fs: enable private-lib in firejail.config (diff) | |
parent | makefiles: add generated files as dependencies (diff) | |
download | firejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.tar.gz firejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.tar.zst firejail-70aaf6fea40ac4f4f28094cad639ec4c00897843.zip |
Merge pull request #5219 from kmk3/build-reduce-config-files
build: reduce autoconf input files from 32 to 2
Diffstat (limited to 'src/libtracelog')
-rw-r--r-- | src/libtracelog/Makefile (renamed from src/libtracelog/Makefile.in) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libtracelog/Makefile.in b/src/libtracelog/Makefile index 52d4bcb08..c5d9c131d 100644 --- a/src/libtracelog/Makefile.in +++ b/src/libtracelog/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | ROOT = ../.. | 1 | ROOT = ../.. |
2 | include $(ROOT)/config.mk | 2 | -include $(ROOT)/config.mk |
3 | 3 | ||
4 | H_FILE_LIST = $(sort $(wildcard *.h)) | 4 | H_FILE_LIST = $(sort $(wildcard *.h)) |
5 | C_FILE_LIST = $(sort $(wildcard *.c)) | 5 | C_FILE_LIST = $(sort $(wildcard *.c)) |
@@ -11,10 +11,10 @@ LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now | |||
11 | .PHONY: all | 11 | .PHONY: all |
12 | all: libtracelog.so | 12 | all: libtracelog.so |
13 | 13 | ||
14 | %.o : %.c $(H_FILE_LIST) ../include/rundefs.h | 14 | %.o : %.c $(H_FILE_LIST) ../include/rundefs.h $(ROOT)/config.mk |
15 | $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | 15 | $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
16 | 16 | ||
17 | libtracelog.so: $(OBJS) | 17 | libtracelog.so: $(OBJS) $(ROOT)/config.mk |
18 | $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl | 18 | $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl |
19 | 19 | ||
20 | .PHONY: clean | 20 | .PHONY: clean |
@@ -22,4 +22,3 @@ clean:; rm -fr $(OBJS) libtracelog.so *.plist | |||
22 | 22 | ||
23 | .PHONY: distclean | 23 | .PHONY: distclean |
24 | distclean: clean | 24 | distclean: clean |
25 | rm -fr Makefile | ||