summaryrefslogtreecommitdiffstats
path: root/mbbsd.icc/Makefile
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-20 00:46:15 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-20 00:46:15 +0800
commit5e20661237dc3008488af49ea04d295884b6bf93 (patch)
tree912db288f064bfe13cd44a9593c0ced52d599e81 /mbbsd.icc/Makefile
parent198b7b147804a502b0072acdb79c51afc8d4d384 (diff)
downloadpttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar.gz
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar.bz2
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar.lz
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar.xz
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.tar.zst
pttbbs-5e20661237dc3008488af49ea04d295884b6bf93.zip
for icc 7.1.006
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@802 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd.icc/Makefile')
-rw-r--r--mbbsd.icc/Makefile32
1 files changed, 12 insertions, 20 deletions
diff --git a/mbbsd.icc/Makefile b/mbbsd.icc/Makefile
index f40f420b..fb6d6fc0 100644
--- a/mbbsd.icc/Makefile
+++ b/mbbsd.icc/Makefile
@@ -11,7 +11,10 @@ OBJS= admin.o announce.o args.o bbs.o board.o cache.o cal.o card.o\
voteboard.o syspost.o var.o toolkit.o passwd.o\
calendar.o
-CFLAGS= -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -DFreeBSD -I../include
+ICCFLAGS= -O -march=pentiumiii
+GCCFLAGS= -O -march=pentium3
+
+CFLAGS= -DHAVE_SETPROCTITLE -DBBSHOME='"$(BBSHOME)"' -DFreeBSD -I../include
LDFLAGS= -lutil -lkvm -lcrypt
.if defined(GDB) || defined(DEBUG)
@@ -36,38 +39,27 @@ GCCUSE=gcc -pipe -Wall $(CFLAGS) -c
.SUFFIXES: .c .o
.c.o: ../include/var.h
- iccbin -D__FreeBSD__ -D__FreeBSD $(CFLAGS) -c ../mbbsd/$*.c
+ icc -D__FreeBSD__ -D__FreeBSD $(CFLAGS) $(ICCFLAGS) -c ../mbbsd/$*.c
all: $(PROG)
$(PROG): $(OBJS)
- cc $(LDFLAGS) -o $(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
-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
test: $(PROG)
killall -9 testmbbsd || true