diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-15 13:05:10 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-15 13:05:10 +0800 |
commit | 25ac9df6116c1e90f768374b71f1a1b54b0df430 (patch) | |
tree | 4f8e69b0a3f69b3c015fd13456bf862f1407f024 /util/Makefile | |
parent | 700ad96bde7769ed9c7fd5f4fc248e93fba8af2f (diff) | |
download | pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar.gz pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar.bz2 pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar.lz pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar.xz pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.tar.zst pttbbs-25ac9df6116c1e90f768374b71f1a1b54b0df430.zip |
clean the source
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1095 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/Makefile')
-rw-r--r-- | util/Makefile | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/util/Makefile b/util/Makefile index 4929a5a2..d1a80835 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,9 +1,15 @@ -# $Id: Makefile,v 1.37 2003/07/21 09:27:00 in2 Exp $ +# $Id$ .include "../pttbbs.mk" UTIL_OBJS= \ - util_cache.o util_record.o util_passwd.o util_var.o util_stuff.o + util_cache.o util_record.o util_passwd.o util_var.o util_stuff.o\ + util_osdep.o util_args.o + +# 用來從 ../mbbsd/xxx.c 產生 util_xxx.o +MBBSD_OBJS= \ + var stuff cache osdep \ + args # 下面這些程式, 會被 compile 並且和 $(UTIL_OBJS) 聯結 CPROG_WITH_UTIL= \ @@ -12,14 +18,15 @@ CPROG_WITH_UTIL= \ expire mandex rmuid horoscope \ openvice parse_news openticket topusr \ indexuser yearsold toplazyBM toplazyBBM \ - reaper buildAnnounce inndBM shmctl + reaper buildAnnounce inndBM shmctl \ + outmail bbsmail # 下面這些程式, 會直接被 compile CPROG_WITHOUT_UTIL= \ shmsweep uhash_loader showboard antispam \ countalldice webgrep bbsrf initbbs \ userlist tunepasswd buildir merge_passwd \ - merge_board xchatd outmail bbsmail + merge_board xchatd # 下面這些程式會被 install PROGS= ${UTIL_OBJS} ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} \ @@ -36,23 +43,13 @@ ${fn}: ${fn}.c ${UTIL_OBJS} ${CC} ${CFLAGS} -o ${fn} ${UTIL_OBJS} ${fn}.c .endfor -util_var.o: ../mbbsd/var.c - ${CC} ${CFLAGS} -D_BBS_UTIL_C_ -c -o util_var.o ../mbbsd/var.c - -util_stuff.o: ../mbbsd/stuff.c - ${CC} ${CFLAGS} -D_BBS_UTIL_C_ -c -o util_stuff.o ../mbbsd/stuff.c - -util_cache.o: ../mbbsd/cache.c - ${CC} ${CFLAGS} -D_BBS_UTIL_C_ -c -o util_cache.o ../mbbsd/cache.c - -bbsmail: bbsmail.c ${UTIL_OBJS} ../mbbsd/osdep.o - ${CC} ${CFLAGS} -o bbsmail bbsmail.c ${UTIL_OBJS} ../mbbsd/osdep.o ${LDFLAGS} +.for fn in ${MBBSD_OBJS} +util_${fn}.o: ../mbbsd/${fn}.c + ${CC} ${CFLAGS} -D_BBS_UTIL_C_ -c -o $@ ../mbbsd/${fn}.c +.endfor xchatd: xchatd.c $(UTIL_OBJS) descrypt.c - $(CC) $(CFLAGS) -o $@ $@.c $(UTIL_OBJS) descrypt.c $(LIBCHAT) - -outmail: outmail.c - $(CC) $(CFLAGS) -o $@ $@.c $(LIBMAIL) + $(CC) $(CFLAGS) -o $@ $@.c $(UTIL_OBJS) descrypt.c install: $(PROGS) install -d $(BBSHOME)/bin/ |