From 573d0b00e773b410447d633fdc7e05345632a8d9 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 12 Mar 2006 16:07:06 +0000 Subject: seperate compiling and linking, to utilize ccache. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3281 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- cacheserver/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cacheserver') 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: -- cgit v1.2.3