summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-02 11:40:06 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-02 11:40:06 +0800
commit25b82b258a2cda8fa7bb323a6cac302637cdaa38 (patch)
tree020234ab3ddf50e8a09fa0a75312bbd8de6f7198
parent0b8de94f2b29a383d6b42260a57d249a3ba88403 (diff)
downloadpttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar.gz
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar.bz2
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar.lz
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar.xz
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.tar.zst
pttbbs-25b82b258a2cda8fa7bb323a6cac302637cdaa38.zip
no longer use
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/not-maintained@1668 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd.icc/.cvsignore3
-rw-r--r--mbbsd.icc/Makefile72
2 files changed, 75 insertions, 0 deletions
diff --git a/mbbsd.icc/.cvsignore b/mbbsd.icc/.cvsignore
new file mode 100644
index 00000000..7eaf2809
--- /dev/null
+++ b/mbbsd.icc/.cvsignore
@@ -0,0 +1,3 @@
+*.o
+mbbsd.icc
+*.il
diff --git a/mbbsd.icc/Makefile b/mbbsd.icc/Makefile
new file mode 100644
index 00000000..bbbe1a7a
--- /dev/null
+++ b/mbbsd.icc/Makefile
@@ -0,0 +1,72 @@
+.PATH: ../mbbsd
+
+BBSHOME=/home/bbs
+PROG= mbbsd.icc
+OBJS= admin.o announce.o args.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\
+ 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 toolkit.o passwd.o\
+ calendar.o
+
+ICCFLAGS= -O -march=pentiumiii -Ob2 -tpp6 -mcpu=pentiumpro -march=pentiumiii \
+ -ipo -ipo_obj
+GCCFLAGS= -O -march=pentium3
+
+CFLAGS= -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -DFreeBSD -I../include
+LDFLAGS= -lutil -lkvm -lcrypt
+
+.if defined(GDB) || defined(DEBUG)
+CFLAGS+= -g
+FDFLAGS+= -g
+.else
+CFLAGS+= -O
+LDFLAGS+= -O
+.endif
+
+.if defined(DEBUG)
+CFLAGS+= -DDEBUG
+LDFLAGS+= -DDEBUG
+.endif
+
+.if defined(NO_FORK)
+CFLAGS+= -DNO_FORK
+.endif
+
+CFLAGS+= "-DCOMPILE_TIME=\"`date`\""
+GCCUSE=gcc -pipe -Wall $(CFLAGS) -c
+
+.SUFFIXES: .c .o
+.c.o: ../include/var.h
+ icc -D__FreeBSD__ -D__FreeBSD $(CFLAGS) $(ICCFLAGS) -c ../mbbsd/$*.c
+
+all: $(PROG)
+
+$(PROG): $(OBJS)
+ icc $(LDFLAGS) $(ICCFLAGS) -o $(PROG) $(OBJS)
+
+../include/var.h: var.c
+ perl ../util/parsevar.pl < ../mbbsd/var.c > ../include/var.h
+
+cache.o: cache.c
+ $(GCCUSE) $(GCCFLAGS) ../mbbsd/$*.c
+
+topsong.o: topsong.c
+ $(GCCUSE) $(GCCFLAGS) ../mbbsd/$*.c
+
+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
+
+test: $(PROG)
+ killall -9 testmbbsd || true
+ cp $(PROG) testmbbsd
+ ./testmbbsd 9000
+ rm -f testmbbsd
+
+clean:
+ rm -f $(OBJS) $(PROG)