summaryrefslogtreecommitdiffstats
path: root/util/Makefile
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
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')
-rw-r--r--util/Makefile167
1 files changed, 167 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 00000000..eeacad38
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,167 @@
+# $Id: Makefile,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))
+
+OBJS= util_cache.o util_record.o util_passwd.o
+
+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 rmuid cpdeadbrd \
+ toplazyBM jungo toplazyBBM daymandex
+
+PROGS= $(CPROGS) BM_money.sh backpasswd.sh mailog.sh opendice.sh\
+ openticket.sh stock.sh topsong.sh weather.sh stock.perl weather.perl\
+ toplazyBM.sh toplazyBBM.sh dailybackup.pl tarqueue.pl waterball.pl
+
+all: $(PROGS)
+
+bbsmail: bbsmail.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+BM_money: BM_money.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+post: post.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+jungo: jungo.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+account: account.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+birth: birth.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+deluserfile: deluserfile.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+expire: expire.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+mandex: mandex.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+daymandex: daymandex.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+rmuid: rmuid.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+cpdeadbrd: cpdeadbrd.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+horoscope: horoscope.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+openvice: openvice.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+parse_news: parse_news.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+openticket: openticket.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+topusr: topusr.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+yearsold: yearsold.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+xchatd: xchatd.c $(OBJS) descrypt.c
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS) descrypt.c $(LIBCHAT)
+
+toplazyBM: toplazyBM.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+toplazyBBM: toplazyBBM.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+smtest: smtest.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+reaper: reaper.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+buildAnnounce: buildAnnounce.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+inndBM: inndBM.c $(OBJS)
+ $(CC) $(CFLAGS) -o $@ $@.c $(OBJS)
+
+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
+
+bbsctl: bbsctl.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 *.o $(CPROGS)