diff options
Diffstat (limited to 'pttbbs.mk')
-rw-r--r-- | pttbbs.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |