diff options
-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 |