diff --git a/Makefile b/Makefile index 5d14ce4679e..11e19ec37ee 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,10 @@ MANPAGES = firejail.1 firemon.1 firecfg.1 firejail-profile.5 firejail-login.5 fi SECCOMP_FILTERS = seccomp seccomp.debug seccomp.32 seccomp.block_secondary seccomp.mdwx seccomp.mdwx.32 ALL_ITEMS = $(APPS) $(SBOX_APPS) $(SBOX_APPS_NON_DUMPABLE) $(MYLIBS) +config.mk config.sh: + printf 'run ./configure to generate %s\n' "$@" >&2 + false + .PHONY: all_items $(ALL_ITEMS) all_items: $(ALL_ITEMS) $(ALL_ITEMS): $(MYDIRS) @@ -31,7 +35,7 @@ mydirs: $(MYDIRS) $(MYDIRS): $(MAKE) -C $@ -$(MANPAGES): src/man +$(MANPAGES): src/man config.mk ./mkman.sh $(VERSION) src/man/$(basename $@).man $@ man: $(MANPAGES) @@ -87,7 +91,7 @@ distclean: clean $(MAKE) -C test distclean rm -fr autom4te.cache config.log config.mk config.sh config.status -realinstall: +realinstall: config.mk # firejail executable install -m 0755 -d $(DESTDIR)$(bindir) install -m 0755 src/firejail/firejail $(DESTDIR)$(bindir) @@ -171,7 +175,7 @@ install-strip: all strip $(ALL_ITEMS) $(MAKE) realinstall -uninstall: +uninstall: config.mk rm -f $(DESTDIR)$(bindir)/firejail rm -f $(DESTDIR)$(bindir)/firemon rm -f $(DESTDIR)$(bindir)/firecfg @@ -208,7 +212,7 @@ src DISTFILES_TEST = test/Makefile test/apps test/apps-x11 test/apps-x11-xorg test/root test/private-lib test/fnetfilter test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/fs test/sysutils test/chroot -dist: +dist: config.mk mv config.sh config.sh.old mv config.status config.status.old make distclean @@ -223,19 +227,20 @@ dist: tar -cJvf $(NAME)-$(VERSION).tar.xz $(NAME)-$(VERSION) rm -fr $(NAME)-$(VERSION) -asc:; ./mkasc.sh $(VERSION) +asc: config.mk + ./mkasc.sh $(VERSION) -deb: dist +deb: dist config.sh ./mkdeb.sh -deb-apparmor: dist +deb-apparmor: dist config.sh ./mkdeb.sh -apparmor --enable-apparmor -test-compile: dist +test-compile: dist config.mk cd test/compile; ./compile.sh $(NAME)-$(VERSION) .PHONY: rpms -rpms: src/man +rpms: src/man config.mk ./platform/rpm/mkrpm.sh $(NAME) $(VERSION) extras: all diff --git a/src/bash_completion/Makefile b/src/bash_completion/Makefile index 16c4a31ee4c..e787a7b921f 100644 --- a/src/bash_completion/Makefile +++ b/src/bash_completion/Makefile @@ -4,7 +4,7 @@ all: firejail.bash_completion ROOT = ../.. -include $(ROOT)/config.mk -firejail.bash_completion: firejail.bash_completion.in +firejail.bash_completion: firejail.bash_completion.in $(ROOT)/config.mk gawk -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@ rm $@.tmp diff --git a/src/fbuilder/Makefile b/src/fbuilder/Makefile index b769deac962..da0403c6ebd 100644 --- a/src/fbuilder/Makefile +++ b/src/fbuilder/Makefile @@ -4,10 +4,10 @@ all: fbuilder ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fbuilder: $(OBJS) +fbuilder: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fcopy/Makefile b/src/fcopy/Makefile index 8016158780a..ae128df9b46 100644 --- a/src/fcopy/Makefile +++ b/src/fcopy/Makefile @@ -4,10 +4,10 @@ all: fcopy ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fcopy: $(OBJS) ../lib/common.o +fcopy: $(OBJS) ../lib/common.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fids/Makefile b/src/fids/Makefile index eed6e44ea7f..e57c56b5bbf 100644 --- a/src/fids/Makefile +++ b/src/fids/Makefile @@ -4,11 +4,11 @@ all: fids ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h +%.o : %.c $(H_FILE_LIST) ../include/common.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ #fseccomp: $(OBJS) ../lib/common.o ../lib/errno.o ../lib/syscall.o -fids: $(OBJS) +fids: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/firecfg/Makefile b/src/firecfg/Makefile index c06bb5338a7..3b0daed7111 100644 --- a/src/firecfg/Makefile +++ b/src/firecfg/Makefile @@ -4,10 +4,10 @@ all: firecfg ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/euid_common.h ../include/libnetlink.h ../include/firejail_user.h ../include/pid.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/euid_common.h ../include/libnetlink.h ../include/firejail_user.h ../include/pid.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -firecfg: $(OBJS) ../lib/common.o ../lib/firejail_user.o +firecfg: $(OBJS) ../lib/common.o ../lib/firejail_user.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/firejail_user.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/firejail/Makefile b/src/firejail/Makefile index ffe978957cf..23444107f4b 100644 --- a/src/firejail/Makefile +++ b/src/firejail/Makefile @@ -4,10 +4,10 @@ all: firejail ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/rundefs.h ../include/common.h ../include/ldd_utils.h ../include/euid_common.h ../include/pid.h ../include/seccomp.h ../include/syscall_i386.h ../include/syscall_x86_64.h ../include/firejail_user.h +%.o : %.c $(H_FILE_LIST) ../include/rundefs.h ../include/common.h ../include/ldd_utils.h ../include/euid_common.h ../include/pid.h ../include/seccomp.h ../include/syscall_i386.h ../include/syscall_x86_64.h ../include/firejail_user.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -firejail: $(OBJS) ../lib/libnetlink.o ../lib/common.o ../lib/ldd_utils.o ../lib/firejail_user.o ../lib/errno.o ../lib/syscall.o +firejail: $(OBJS) ../lib/libnetlink.o ../lib/common.o ../lib/ldd_utils.o ../lib/firejail_user.o ../lib/errno.o ../lib/syscall.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/ldd_utils.o ../lib/firejail_user.o ../lib/errno.o ../lib/syscall.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/firemon/Makefile b/src/firemon/Makefile index 45203673b56..b2d2f4d1471 100644 --- a/src/firemon/Makefile +++ b/src/firemon/Makefile @@ -4,10 +4,10 @@ all: firemon ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/pid.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/pid.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -firemon: $(OBJS) ../lib/common.o ../lib/pid.o +firemon: $(OBJS) ../lib/common.o ../lib/pid.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/pid.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fldd/Makefile b/src/fldd/Makefile index fdaa202fda4..d9a70529bdc 100644 --- a/src/fldd/Makefile +++ b/src/fldd/Makefile @@ -4,10 +4,10 @@ all: fldd ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h ../include/ldd_utils.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h ../include/ldd_utils.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fldd: $(OBJS) ../lib/common.o ../lib/ldd_utils.o +fldd: $(OBJS) ../lib/common.o ../lib/ldd_utils.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/ldd_utils.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fnet/Makefile b/src/fnet/Makefile index 2642fea381e..36e95522fe0 100644 --- a/src/fnet/Makefile +++ b/src/fnet/Makefile @@ -4,10 +4,10 @@ all: fnet ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/libnetlink.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/libnetlink.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fnet: $(OBJS) ../lib/common.o ../lib/libnetlink.o +fnet: $(OBJS) ../lib/common.o ../lib/libnetlink.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/libnetlink.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fnetfilter/Makefile b/src/fnetfilter/Makefile index e0738281ac6..758561b9e89 100644 --- a/src/fnetfilter/Makefile +++ b/src/fnetfilter/Makefile @@ -4,10 +4,10 @@ all: fnetfilter ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fnetfilter: $(OBJS) ../lib/common.o +fnetfilter: $(OBJS) ../lib/common.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fnettrace-dns/Makefile b/src/fnettrace-dns/Makefile index 9946f545dc0..101abd4d4d0 100644 --- a/src/fnettrace-dns/Makefile +++ b/src/fnettrace-dns/Makefile @@ -4,10 +4,10 @@ all: fnettrace-dns ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fnettrace-dns: $(OBJS) +fnettrace-dns: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fnettrace-sni/Makefile b/src/fnettrace-sni/Makefile index 556727831d3..da7c1ca4e33 100644 --- a/src/fnettrace-sni/Makefile +++ b/src/fnettrace-sni/Makefile @@ -4,10 +4,10 @@ all: fnettrace-sni ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fnettrace-sni: $(OBJS) +fnettrace-sni: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fnettrace/Makefile b/src/fnettrace/Makefile index 406d095ff93..f41a4d36d26 100644 --- a/src/fnettrace/Makefile +++ b/src/fnettrace/Makefile @@ -4,10 +4,10 @@ all: fnettrace ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fnettrace: $(OBJS) +fnettrace: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fsec-optimize/Makefile b/src/fsec-optimize/Makefile index 1ccc2fa8f80..1aa49d34bb5 100644 --- a/src/fsec-optimize/Makefile +++ b/src/fsec-optimize/Makefile @@ -4,10 +4,10 @@ all: fsec-optimize ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/seccomp.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/seccomp.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fsec-optimize: $(OBJS) ../lib/common.o ../lib/libnetlink.o +fsec-optimize: $(OBJS) ../lib/common.o ../lib/libnetlink.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/errno.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fsec-print/Makefile b/src/fsec-print/Makefile index b5ba6f1609e..b076c0588b8 100644 --- a/src/fsec-print/Makefile +++ b/src/fsec-print/Makefile @@ -4,10 +4,10 @@ all: fsec-print ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/seccomp.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/seccomp.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fsec-print: $(OBJS) ../lib/common.o ../lib/libnetlink.o ../lib/errno.o ../lib/syscall.o +fsec-print: $(OBJS) ../lib/common.o ../lib/libnetlink.o ../lib/errno.o ../lib/syscall.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/errno.o ../lib/syscall.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fseccomp/Makefile b/src/fseccomp/Makefile index 527ec0a68e8..9bf4c050b7e 100644 --- a/src/fseccomp/Makefile +++ b/src/fseccomp/Makefile @@ -4,10 +4,10 @@ all: fseccomp ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/syscall.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fseccomp: $(OBJS) ../lib/common.o ../lib/errno.o ../lib/syscall.o +fseccomp: $(OBJS) ../lib/common.o ../lib/errno.o ../lib/syscall.o $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/errno.o ../lib/syscall.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/ftee/Makefile b/src/ftee/Makefile index 00c1a2662df..535d7ff63bb 100644 --- a/src/ftee/Makefile +++ b/src/ftee/Makefile @@ -4,10 +4,10 @@ all: ftee ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -ftee: $(OBJS) +ftee: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/fzenity/Makefile b/src/fzenity/Makefile index 169b78f091f..0358dd3e9fe 100644 --- a/src/fzenity/Makefile +++ b/src/fzenity/Makefile @@ -4,10 +4,10 @@ all: fzenity ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h +%.o : %.c $(H_FILE_LIST) ../include/common.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -fzenity: $(OBJS) +fzenity: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/jailcheck/Makefile b/src/jailcheck/Makefile index 62e82c9b342..52feb86e6fc 100644 --- a/src/jailcheck/Makefile +++ b/src/jailcheck/Makefile @@ -4,10 +4,10 @@ all: jailcheck ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/pid.h +%.o : %.c $(H_FILE_LIST) ../include/common.h ../include/pid.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -jailcheck: $(OBJS) +jailcheck: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) ../lib/common.o ../lib/pid.o $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/lib/Makefile b/src/lib/Makefile index bac2d4e9397..d9bc63ef7b5 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -4,7 +4,7 @@ include $(ROOT)/src/common.mk .PHONY: all all: $(OBJS) -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ .PHONY: clean diff --git a/src/libpostexecseccomp/Makefile b/src/libpostexecseccomp/Makefile index 14e0cdb1d19..5386af58bbf 100644 --- a/src/libpostexecseccomp/Makefile +++ b/src/libpostexecseccomp/Makefile @@ -11,10 +11,10 @@ LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now .PHONY: all all: libpostexecseccomp.so -%.o : %.c $(H_FILE_LIST) ../include/seccomp.h ../include/rundefs.h +%.o : %.c $(H_FILE_LIST) ../include/seccomp.h ../include/rundefs.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ -libpostexecseccomp.so: $(OBJS) +libpostexecseccomp.so: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl .PHONY: clean diff --git a/src/libtrace/Makefile b/src/libtrace/Makefile index 46a8f97c2f0..6f28b3442ea 100644 --- a/src/libtrace/Makefile +++ b/src/libtrace/Makefile @@ -11,10 +11,10 @@ LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now .PHONY: all all: libtrace.so -%.o : %.c $(H_FILE_LIST) +%.o : %.c $(H_FILE_LIST) $(ROOT)/config.mk $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ -libtrace.so: $(OBJS) +libtrace.so: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl .PHONY: clean diff --git a/src/libtracelog/Makefile b/src/libtracelog/Makefile index 1a3ab1ba5a0..c5d9c131d0c 100644 --- a/src/libtracelog/Makefile +++ b/src/libtracelog/Makefile @@ -11,10 +11,10 @@ LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now .PHONY: all all: libtracelog.so -%.o : %.c $(H_FILE_LIST) ../include/rundefs.h +%.o : %.c $(H_FILE_LIST) ../include/rundefs.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ -libtracelog.so: $(OBJS) +libtracelog.so: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl .PHONY: clean diff --git a/src/man/Makefile b/src/man/Makefile index b786e1ca99c..283822d1f23 100644 --- a/src/man/Makefile +++ b/src/man/Makefile @@ -4,7 +4,7 @@ all: firecfg.man firejail.man firejail-login.man firejail-users.man firejail-pro ROOT = ../.. -include $(ROOT)/config.mk -%.man: %.txt +%.man: %.txt $(ROOT)/config.mk gawk -f ./preproc.awk -- $(MANFLAGS) < $< > $@ .PHONY: clean diff --git a/src/profstats/Makefile b/src/profstats/Makefile index 0e3b101efbc..0274aead288 100644 --- a/src/profstats/Makefile +++ b/src/profstats/Makefile @@ -4,10 +4,10 @@ all: profstats ROOT = ../.. include $(ROOT)/src/common.mk -%.o : %.c $(H_FILE_LIST) ../include/common.h +%.o : %.c $(H_FILE_LIST) ../include/common.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDE) -c $< -o $@ -profstats: $(OBJS) +profstats: $(OBJS) $(ROOT)/config.mk $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(EXTRA_LDFLAGS) .PHONY: clean diff --git a/src/zsh_completion/Makefile b/src/zsh_completion/Makefile index bec0150495a..d7bc1038a16 100644 --- a/src/zsh_completion/Makefile +++ b/src/zsh_completion/Makefile @@ -4,7 +4,7 @@ all: _firejail ROOT = ../.. -include $(ROOT)/config.mk -_firejail: _firejail.in +_firejail: _firejail.in $(ROOT)/config.mk gawk -f ../man/preproc.awk -- $(MANFLAGS) < $< > $@.tmp sed "s|_SYSCONFDIR_|$(sysconfdir)|" < $@.tmp > $@ rm $@.tmp