summaryrefslogtreecommitdiffstats
path: root/mbbsd.icc/Makefile
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-27 23:50:20 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-27 23:50:20 +0800
commit1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95 (patch)
tree95c9fbe94ccd9f50a0f09732b577ff455149dd66 /mbbsd.icc/Makefile
parentf793f25ce60f90f2413546a170203bcc5403e77e (diff)
downloadpttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.gz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.bz2
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.lz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.xz
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.zst
pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.zip
for mbbsd.icc
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@128 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd.icc/Makefile')
-rw-r--r--mbbsd.icc/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/mbbsd.icc/Makefile b/mbbsd.icc/Makefile
new file mode 100644
index 00000000..a87135cc
--- /dev/null
+++ b/mbbsd.icc/Makefile
@@ -0,0 +1,51 @@
+.PATH: ../mbbsd
+
+BBSHOME=/home/bbs
+PROG= mbbsd.icc
+OBJS= admin.o announce.o args.o bbcall.o bbs.o board.o cache.o cal.o card.o\
+ chat.o chc_draw.o chc_net.o chc_play.o chc_rule.o chicken.o dark.o\
+ dice.o edit.o friend.o gamble.o gomo.o gomo1.o guess.o indict.o io.o\
+ kaede.o lovepaper.o mail.o mbbsd.o menu.o more.o name.o osdep.o\
+ othello.o page.o read.o record.o register.o screen.o stuff.o\
+ talk.o term.o topsong.o user.o vice.o vote.o xyz.o\
+ voteboard.o syspost.o var.o descrypt.o toolkit.o passwd.o\
+ calendar.o
+
+CFLAGS= -O -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -DFreeBSD -I../include -D__FreeBSD__
+LDFLAGS=-O -lutil -lkvm
+GCCUSE=gcc -pipe -Wall -O -DHAVE_SETPROCTITLE -DBBSHOME='"/home/bbs"' -DFreeBSD -I../include -c
+
+.SUFFIXES: .c .o
+.c.o:
+ iccbin $(CFLAGS) -c ../mbbsd/$*.c
+
+all: $(PROG)
+
+$(PROG): $(OBJS)
+ cc $(LDFLAGS) -o $(PROG) $(OBJS)
+
+install: $(PROG)
+ install -d $(BBSHOME)/bin/
+ install -c -m 755 $(PROG) $(BBSHOME)/bin/
+ rm -f $(BBSHOME)/bin/mbbsd
+ ln -sv $(BBSHOME)/bin/$(PROG) $(BBSHOME)/bin/mbbsd
+cache.o: cache.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+mail.o: mail.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+menu.o: menu.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+record.o: record.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+topsong.o: topsong.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+xyz.o: xyz.c
+ $(GCCUSE) ../mbbsd/$*.c
+
+clean:
+ rm -f $(OBJS) $(PROG)