summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:55:40 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:55:40 +0800
commitbc3bc144868c45c472f6e890aea0738c843bc0f8 (patch)
tree02b7e6c530be711c1aae397728c0f9c0a347595e
parent78192b342f0e13ded69d081292fef532e5fca76f (diff)
downloadpttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar.gz
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar.bz2
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar.lz
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar.xz
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.tar.zst
pttbbs-bc3bc144868c45c472f6e890aea0738c843bc0f8.zip
use ccache if it exists
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@988 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/Makefile4
-rw-r--r--pttbbs.mk3
2 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 33db03b6..a8ebd584 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.26 2003/06/22 04:32:38 in2 Exp $
+# $Id: Makefile,v 1.27 2003/06/28 08:55:40 kcwu Exp $
.include "../pttbbs.mk"
@@ -14,7 +14,7 @@ OBJS= admin.o announce.o args.o bbs.o board.o cache.o cal.o card.o\
.SUFFIXES: .c .o
.c.o: ../include/var.h
- $(CC) $(CFLAGS) -c $*.c
+ $(CCACHE) $(CC) $(CFLAGS) -c $*.c
all: $(PROG)
diff --git a/pttbbs.mk b/pttbbs.mk
index 7944f956..6822c537 100644
--- a/pttbbs.mk
+++ b/pttbbs.mk
@@ -1,9 +1,10 @@
-# $Id: pttbbs.mk,v 1.4 2003/06/26 16:29:02 kcwu Exp $
+# $Id: pttbbs.mk,v 1.5 2003/06/28 08:55:40 kcwu Exp $
# ©w¸q°ò¥»ªì­È
BBSHOME?= $(HOME)
BBSHOME?= /home/bbs
OSTYPE?= FreeBSD
CC?= gcc
+CCACHE!= which ccache|sed -e 's/^.*\///'
PTT_CFLAGS= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I../include
PTT_LDFLAGS= -pipe -Wall
PTT_LIBS= -lcrypt