diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:06 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-13 00:07:06 +0800 |
commit | 573d0b00e773b410447d633fdc7e05345632a8d9 (patch) | |
tree | ea8895ea782c7745c9252bc61d3491fa5b6079b0 /cacheserver/Makefile | |
parent | c4b2bc6fb7cfed443c26457f9f1e302ea0309755 (diff) | |
download | pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar.gz pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar.bz2 pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar.lz pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar.xz pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.tar.zst pttbbs-573d0b00e773b410447d633fdc7e05345632a8d9.zip |
seperate compiling and linking, to utilize ccache.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3281 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver/Makefile')
-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: |