aboutsummaryrefslogtreecommitdiffstats
path: root/src/prog.mk
diff options
context:
space:
mode:
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)