summaryrefslogtreecommitdiffstats
path: root/pttbbs.mk
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-16 21:09:25 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-16 21:09:25 +0800
commit487719c722239f89c1f92fc087fc6f6418f6b5eb (patch)
tree526f37f9171fb4b22f3840dbab06574d54296e4c /pttbbs.mk
parent199158f2d5f28c132e3e433ad27da3f43567221d (diff)
downloadpttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar.gz
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar.bz2
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar.lz
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar.xz
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.tar.zst
pttbbs-487719c722239f89c1f92fc087fc6f6418f6b5eb.zip
for icc 8.0
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1774 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'pttbbs.mk')
-rw-r--r--pttbbs.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/pttbbs.mk b/pttbbs.mk
index 4b85d062..9df09196 100644
--- a/pttbbs.mk
+++ b/pttbbs.mk
@@ -36,6 +36,13 @@ NO_OMITFP= yes
NO_FORK= yes
.endif
+.if defined(USE_ICC)
+CC= icc
+CFLAGS= $(PTT_CFLAGS) -O1 -tpp6 -mcpu=pentiumpro -march=pentiumiii \
+ -ip -ipo
+LDFLAGS+= -O1 -tpp6 -mcpu=pentiumpro -march=pentiumiii -ip -ipo \
+ $(PTT_LDFLAGS) $(PTT_LIBS)
+.else
# 若有定義 GDB或 DEBUG, 則加入 -g , 否則用 -O
.if defined(GDB) || defined(DEBUG)
CFLAGS= -g $(PTT_CFLAGS)
@@ -50,6 +57,7 @@ LDFLAGS+= -Os $(PTT_LDFLAGS) $(PTT_LIBS)
CFLAGS+= -fomit-frame-pointer
.endif
.endif
+.endif
# 若有定義 DEBUG, 則在 CFLAGS內定義 DEBUG
.if defined(DEBUG)