From bc3bc144868c45c472f6e890aea0738c843bc0f8 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 28 Jun 2003 08:55:40 +0000 Subject: use ccache if it exists git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@988 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/Makefile | 4 ++-- pttbbs.mk | 3 ++- 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 -- cgit v1.2.3