aboutsummaryrefslogtreecommitdiffstats
path: root/src/prog.mk
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-05-29 21:27:50 +0000
committerLibravatar GitHub <noreply@github.com>2024-05-29 21:27:50 +0000
commitabc6996cc5993fc3e6cc8835d0c2eddb8aa9c14d (patch)
treed3417697b69c1af51b39c2152a2dd65274380aad /src/prog.mk
parentprofiles: libreoffice: support signing documents with GPG (#6353) (diff)
parentbuild: allow overriding common tools (diff)
downloadfirejail-abc6996cc5993fc3e6cc8835d0c2eddb8aa9c14d.tar.gz
firejail-abc6996cc5993fc3e6cc8835d0c2eddb8aa9c14d.tar.zst
firejail-abc6996cc5993fc3e6cc8835d0c2eddb8aa9c14d.zip
Merge pull request #6354 from kmk3/build-tool-vars
build: allow overriding common tools
Diffstat (limited to 'src/prog.mk')
-rw-r--r--src/prog.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/prog.mk b/src/prog.mk
index a639e87fc..3e89a6ba8 100644
--- a/src/prog.mk
+++ b/src/prog.mk
@@ -5,6 +5,9 @@
5# The includer should probably define PROG and TARGET and may also want to 5# The includer should probably define PROG and TARGET and may also want to
6# define EXTRA_OBJS and extend CLEANFILES. 6# define EXTRA_OBJS and extend CLEANFILES.
7 7
8CC ?= cc
9RM ?= rm -f
10
8HDRS := 11HDRS :=
9SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) 12SRCS := $(sort $(wildcard $(MOD_DIR)/*.c))
10OBJS := $(SRCS:.c=.o) 13OBJS := $(SRCS:.c=.o)
@@ -25,4 +28,4 @@ $(PROG): $(OBJS) $(EXTRA_OBJS) $(ROOT)/config.mk
25 $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) $(LIBS) 28 $(CC) $(PROG_LDFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) $(LIBS)
26 29
27.PHONY: clean 30.PHONY: clean
28clean:; rm -fr $(PROG) $(CLEANFILES) 31clean:; $(RM) -r $(PROG) $(CLEANFILES)