diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 13:28:50 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 13:28:50 +0800 |
commit | f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7 (patch) | |
tree | 3ebfe0881c438cd44bd665cf318c9afcce48c4f5 /mbbsd/Makefile | |
parent | 622dbe2edaf23352eeb04c8e925810b92ca81e2a (diff) | |
download | pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar.gz pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar.bz2 pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar.lz pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar.xz pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.tar.zst pttbbs-f9c5ef4b57a199b34f85d4b123df032c2a0f6ab7.zip |
Simplify variable expansion
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4365 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r-- | mbbsd/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile index b756e7f6..7f55d702 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -28,8 +28,8 @@ OBJS:= admin.o assess.o edit.o menu.o xyz.o var.o visio.o \ ####################################################################### .if !defined(WITHOUT_BLOG) && defined(WITH_BLOG) -CFLAGS+= -DBLOG -LDLIBS+= `mysql_config --libs` +CFLAGS+= -DBLOG +LDLIBS:= ${LDLIBS} ${:!mysql_config --libs!} .endif .if !defined(WITHOUT_LOG_CRAWLER) && defined(WITH_LOG_CRAWLER) @@ -51,11 +51,11 @@ OBJS+= bbslua.o bbsluaext.o CFLAGS+= -DUSE_BBSLUA # MODIFY THESE ENVIRONMENT SETTINGS TO FIT YOUR CONFIGURATION .if $(OSTYPE)=="FreeBSD" -CFLAGS+= `pkg-config --cflags lua-5.1` -LDLIBS+= `pkg-config --libs lua-5.1` +CFLAGS:= ${CFLAGS} ${:!pkg-config --cflags lua-5.1!} +LDLIBS:= ${LDLIBS} ${:!pkg-config --libs lua-5.1!} .else -CFLAGS+= `pkg-config --cflags lua5.1` -LDLIBS+= `pkg-config --libs lua5.1` +CFLAGS:= ${CFLAGS} ${:!pkg-config --cflags lua5.1!} +LDLIBS:= ${LDLIBS} ${:!pkg-config --libs lua5.1!} .endif .endif |