aboutsummaryrefslogtreecommitdiff
path: root/mk/prog.mk
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-06-19 23:12:00 +0000
committerRoy Marples <roy@marples.name>2008-06-19 23:12:00 +0000
commit11acce3c7d516578f91931f6613cb181f78c27d0 (patch)
tree4cb17c9ab9bc5345689031b041cd34fab74705e8 /mk/prog.mk
parent4f2bb5ceafbc09d0c2dea4ee91ddf7d6052e65b3 (diff)
Use CPPFLAGS so we work with -combine in CFLAGS.
Diffstat (limited to 'mk/prog.mk')
-rw-r--r--mk/prog.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/prog.mk b/mk/prog.mk
index a76bca44..288327e8 100644
--- a/mk/prog.mk
+++ b/mk/prog.mk
@@ -24,6 +24,9 @@ CLEANFILES+= ${OBJS} ${PROG}
all: depend ${PROG}
+.c.o:
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
+
${PROG}: ${SCRIPTS} ${OBJS}
${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}