diff options
author | 2023-07-11 03:30:05 -0300 | |
---|---|---|
committer | 2024-01-22 17:55:49 -0300 | |
commit | 54057e15f6160d2d8691b5f193063fd95495a37b (patch) | |
tree | a122f13736cc13fe24e0030e38d720f56a3d7bda /src/so.mk | |
parent | build(deps): bump github/codeql-action from 3.23.0 to 3.23.1 (diff) | |
download | firejail-54057e15f6160d2d8691b5f193063fd95495a37b.tar.gz firejail-54057e15f6160d2d8691b5f193063fd95495a37b.tar.zst firejail-54057e15f6160d2d8691b5f193063fd95495a37b.zip |
build: move EXTRA vars directly into targets
Diffstat (limited to 'src/so.mk')
-rw-r--r-- | src/so.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5,18 +5,18 @@ | |||
5 | # The includer should probably define SO and TARGET and may also want to define | 5 | # The includer should probably define SO and TARGET and may also want to define |
6 | # EXTRA_HDRS and EXTRA_OBJS and extend CLEANFILES. | 6 | # EXTRA_HDRS and EXTRA_OBJS and extend CLEANFILES. |
7 | 7 | ||
8 | HDRS := $(sort $(wildcard $(MOD_DIR)/*.h)) $(EXTRA_HDRS) | 8 | HDRS := $(sort $(wildcard $(MOD_DIR)/*.h)) |
9 | SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) | 9 | SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) |
10 | OBJS := $(SRCS:.c=.o) $(EXTRA_OBJS) | 10 | OBJS := $(SRCS:.c=.o) |
11 | 11 | ||
12 | .PHONY: all | 12 | .PHONY: all |
13 | all: $(TARGET) | 13 | all: $(TARGET) |
14 | 14 | ||
15 | %.o : %.c $(HDRS) $(ROOT)/config.mk | 15 | %.o : %.c $(HDRS) $(EXTRA_HDRS) $(ROOT)/config.mk |
16 | $(CC) $(SO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ | 16 | $(CC) $(SO_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ |
17 | 17 | ||
18 | $(SO): $(OBJS) $(ROOT)/config.mk | 18 | $(SO): $(OBJS) $(EXTRA_OBJS) $(ROOT)/config.mk |
19 | $(CC) $(SO_LDFLAGS) -shared $(LDFLAGS) -o $@ $(OBJS) -ldl | 19 | $(CC) $(SO_LDFLAGS) -shared $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) -ldl |
20 | 20 | ||
21 | .PHONY: clean | 21 | .PHONY: clean |
22 | clean:; rm -fr $(SO) $(CLEANFILES) | 22 | clean:; rm -fr $(SO) $(CLEANFILES) |