summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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