From a0d62aceb4a20317d458a24fd449ff3fabfbbf63 Mon Sep 17 00:00:00 2001 From: mhsin Date: Tue, 18 Sep 2007 13:18:16 +0000 Subject: Update. To link util_osdep.o for bbsctl. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3556 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') 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 -- cgit v1.2.3