diff options
-rw-r--r-- | cacheserver/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cacheserver/Makefile b/cacheserver/Makefile index 42b077b4..05a0cd07 100644 --- a/cacheserver/Makefile +++ b/cacheserver/Makefile @@ -5,9 +5,13 @@ PROGRAMS= utmpserver utmpsync all: ${PROGRAMS} +.SUFFIXES: .c .o +.c.o: + $(CCACHE) $(CC) $(CFLAGS) -c $*.c + .for fn in ${PROGRAMS} -${fn}: ${fn}.c - ${CC} ${CFLAGS} ${LDFLAGS} -DPTTBBS_UTIL -o ${fn} ${fn}.c ../util/util_*.o +${fn}: ${fn}.o + ${CC} ${CFLAGS} ${LDFLAGS} -o ${fn} ${fn}.o ../util/util_*.o .endfor clean: |