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
commit50341713431a7482650735a4050a008c8d967170 (patch)
treeb65f3a1003cf7047e003f60e50b551a3c2b1aea9
parentee2a749b2c162cccf037e31c54ba331edde72df3 (diff)
downloadpttbbs-50341713431a7482650735a4050a008c8d967170.tar
pttbbs-50341713431a7482650735a4050a008c8d967170.tar.gz
pttbbs-50341713431a7482650735a4050a008c8d967170.tar.bz2
pttbbs-50341713431a7482650735a4050a008c8d967170.tar.lz
pttbbs-50341713431a7482650735a4050a008c8d967170.tar.xz
pttbbs-50341713431a7482650735a4050a008c8d967170.tar.zst
pttbbs-50341713431a7482650735a4050a008c8d967170.zip
use ccache if it exists
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@988 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/Makefile4
-rw-r--r--pttbbs/pttbbs.mk3
2 files changed, 4 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/Makefile b/pttbbs/mbbsd/Makefile
index 33db03b6..a8ebd584 100644
--- a/pttbbs/mbbsd/Makefile
+++ b/pttbbs/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/pttbbs.mk b/pttbbs/pttbbs.mk
index 7944f956..6822c537 100644
--- a/pttbbs/pttbbs.mk
+++ b/pttbbs/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