diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 01:11:49 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-13 01:11:49 +0800 |
commit | c18011e6bca9124ef1d31b16ebdc77ad9f3bb146 (patch) | |
tree | 920ff9a35c0f713b68fd2bc6eb529591bd8d1ea1 | |
parent | 7bc0360b54705e8dff50ef9f048c7fde2fa5822d (diff) | |
download | pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar.gz pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar.bz2 pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar.lz pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar.xz pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.tar.zst pttbbs-c18011e6bca9124ef1d31b16ebdc77ad9f3bb146.zip |
- fix make for FreeBSD
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4347 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | innbbsd/Makefile | 2 | ||||
-rw-r--r-- | mbbsd/Makefile | 2 | ||||
-rw-r--r-- | pttbbs.mk | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile index 3dcb2175..539b2f9a 100644 --- a/innbbsd/Makefile +++ b/innbbsd/Makefile @@ -5,7 +5,7 @@ SRCROOT= .. VERSION= 0.50-pttpatch ADMINUSER?= root@your.domain.name -.if "$(OS)" == "FreeBSD" +.if $(OSTYPE) == "FreeBSD" # FreeBSD為了 innbbsd額外需加的參數 inn_CFLAGS= -DBSD44 -DMMAP -DGETRUSAGE inn_LDFLAGS= -L/usr/local/lib -liconv diff --git a/mbbsd/Makefile b/mbbsd/Makefile index e5cb2a9d..127e6c24 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -50,7 +50,7 @@ CFLAGS+= -DBBSLUA_USAGE OBJS+= bbslua.o bbsluaext.o CFLAGS+= -DUSE_BBSLUA # MODIFY THESE ENVIRONMENT SETTINGS TO FIT YOUR CONFIGURATION -.if $(OS)=="FreeBSD" +.if $(OSTYPE)=="FreeBSD" CFLAGS+= `pkg-config --cflags lua-5.1` LDLIBS+= `pkg-config --libs lua-5.1` .else @@ -17,7 +17,7 @@ PTT_LDLIBS= -lhz # enable assert() #PTT_CFLAGS+= -DNDEBUG -.if "$(OS)" == "FreeBSD" +.if ${OSTYPE} == "FreeBSD" # FreeBSD特有的環境 PTT_CFLAGS+= -I/usr/local/include PTT_LDFLAGS+= -L/usr/local/lib |