summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authormhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-09-18 21:18:16 +0800
committermhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-09-18 21:18:16 +0800
commita0d62aceb4a20317d458a24fd449ff3fabfbbf63 (patch)
tree0764dc008ee3b331f725cc61874012513c5335c9 /util
parent523bb5a001e0c87d960b07bf04b301d6ddbed9ca (diff)
downloadpttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar.gz
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar.bz2
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar.lz
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar.xz
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.tar.zst
pttbbs-a0d62aceb4a20317d458a24fd449ff3fabfbbf63.zip
Update.
To link util_osdep.o for bbsctl. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3556 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/Makefile b/util/Makefile
index 6cc09e87..a12afc38 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -58,7 +58,7 @@ util_${fn}.o: ${BBSBASE} ../mbbsd/${fn}.c
.endfor
shmctl: ${BBSBASE} shmctl.c ${UTIL_OBJS}
- $(CCACHE) ${CC} ${CFLAGS} ${LDFLAGS} -o shmctl ${UTIL_OBJS} shmctl.c
+ $(CCACHE) ${CXX} ${CFLAGS} ${LDFLAGS} -o shmctl ${UTIL_OBJS} shmctl.c
#shmctl: ${BBSBASE} shmctl.c ${UTIL_OBJS}
# $(CCACHE) gcc -g -DBBSHOME='"/home/bbs"' -I../include -D__OS_MAJOR_VERSION__="2" -D__OS_MINOR_VERSION__="6" -DPTTBBS_UTIL -O1 -o shmctl ${UTIL_OBJS} shmctl.c
#shmctl: ${BBSBASE} shmctl.cc ${UTIL_OBJS}
@@ -95,8 +95,8 @@ installdiskstat: diskstat
chmod 2755 /usr/local/bin/diskstat
# for bbsctl. bbsctl should be compiled with bbs and installed with root
-bbsctl: bbsctl.c
- $(CCACHE) $(CC) $(CFLAGS) -o $@ $@.c
+bbsctl: bbsctl.c util_osdep.o
+ $(CCACHE) $(CC) $(CFLAGS) -o $@ $@.c util_osdep.o
installbbsctl: bbsctl
rm -f /home/bbs/bin/bbsctl