summaryrefslogtreecommitdiffstats
path: root/util/Makefile.save
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
commitae31e19f92e717919ac8e3db9039eb38d2b89aae (patch)
treec70164d6a1852344f44b04a653ae2815043512af /util/Makefile.save
downloadpttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.gz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.bz2
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.lz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.xz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.zst
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.zip
Initial revision
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/Makefile.save')
-rw-r--r--util/Makefile.save152
1 files changed, 152 insertions, 0 deletions
diff --git a/util/Makefile.save b/util/Makefile.save
new file mode 100644
index 00000000..2d0651b1
--- /dev/null
+++ b/util/Makefile.save
@@ -0,0 +1,152 @@
+# $Id: Makefile.save,v 1.1 2002/03/07 15:13:45 in2 Exp $
+
+BBSHOME?=$(HOME)
+OSTYPE=linux
+
+# FreeBSD
+CC_FreeBSD= gcc
+CFLAGS_FreeBSD= -pipe -Wall -g -O3 -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -I../include
+LIBS_FreeBSD=
+LIBMAIL_FreeBSD=-lutil
+LIBCHAT_FreeBSD=
+
+# Linux
+CC_linux= gcc
+CFLAGS_linux= -pipe -Wall -g -O3 -DHAVE_DES_CRYPT -DBBSHOME='"$(BBSHOME)"' -I../include
+LIBS_linux= -lresolv
+LIBMAIL_linux=
+LIBCHAT_linux= -lcrypt
+
+CC= $(CC_$(OSTYPE))
+CFLAGS= $(CFLAGS_$(OSTYPE))
+LDFLAGS=$(LDFLAGS_$(OSTYPE))
+LIBMAIL=$(LIBMAIL_$(OSTYPE))
+LIBCHAT=$(LIBCHAT_$(OSTYPE))
+
+CPROGS= bbsmail BM_money post account birth deluserfile expire mandex\
+ horoscope openvice parse_news openticket topusr yearsold uhash_loader\
+ poststat showboard antispam countalldice webgrep bbsrf\
+ initbbs outmail xchatd userlist tunepasswd buildir reaper shmsweep\
+ merge_passwd merge_board inndBM buildAnnounce cpdeadbrd toplazyBM\
+ jungo
+PROGS= $(CPROGS) BM_money.sh backpasswd.sh mailog.sh opendice.sh\
+ openticket.sh stock.sh topsong.sh weather.sh stock.perl weather.perl\
+ cvslog.sh toplazyBM.sh
+
+all: $(PROGS)
+
+bbsmail: bbsmail.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+BM_money: BM_money.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+post: post.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+account: account.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+birth: birth.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+deluserfile: deluserfile.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+expire: expire.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+mandex: mandex.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+cpdeadbrd: cpdeadbrd.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+horoscope: horoscope.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+openvice: openvice.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+parse_news: parse_news.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+openticket: openticket.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+topusr: topusr.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+yearsold: yearsold.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+xchatd: xchatd.c util_cache.c util_record.c util_passwd.c descrypt.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c descrypt.c $(LIBCHAT)
+
+toplazyBM: toplazyBM.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+jungo: jungo.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+smtest: smtest.c util_cache.c util_record.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_cache.c util_record.c util_passwd.c
+
+reaper: reaper.c util_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_passwd.c util_cache.c util_passwd.c
+
+buildAnnounce: buildAnnounce.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_record.c util_cache.c util_passwd.c
+
+inndBM: inndBM.c
+ $(CC) $(CFLAGS) -o $@ $@.c util_record.c util_cache.c util_passwd.c
+
+shmsweep: shmsweep.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+uhash_loader: uhash_loader.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+showboard: showboard.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+antispam: antispam.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+countalldice: countalldice.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+webgrep: webgrep.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+bbsrf: bbsrf.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+initbbs: initbbs.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+outmail: outmail.c
+ $(CC) $(CFLAGS) -o $@ $@.c $(LIBMAIL)
+
+userlist: userlist.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+tunepasswd: tunepasswd.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+buildir: buildir.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+merge_passwd: merge_passwd.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+merge_board : merge_board.c
+ $(CC) $(CFLAGS) -o $@ $@.c
+
+install: $(PROGS)
+ install -d $(BBSHOME)/bin/
+ install -c -m 755 $(PROGS) $(BBSHOME)/bin/
+ chmod 4755 $(BBSHOME)/bin/post
+
+clean:
+ rm -f $(CPROGS)