summaryrefslogtreecommitdiffstats
path: root/util/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/Makefile b/util/Makefile
index d1a80835..6b847752 100644
--- a/util/Makefile
+++ b/util/Makefile
@@ -9,7 +9,7 @@ UTIL_OBJS= \
# 用來從 ../mbbsd/xxx.c 產生 util_xxx.o
MBBSD_OBJS= \
var stuff cache osdep \
- args
+ args passwd
# 下面這些程式, 會被 compile 並且和 $(UTIL_OBJS) 聯結
CPROG_WITH_UTIL= \
@@ -40,7 +40,7 @@ all: ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${PROGS}
.for fn in ${CPROG_WITH_UTIL}
${fn}: ${fn}.c ${UTIL_OBJS}
- ${CC} ${CFLAGS} -o ${fn} ${UTIL_OBJS} ${fn}.c
+ ${CC} ${CFLAGS} ${LDFLAGS} -o ${fn} ${UTIL_OBJS} ${fn}.c
.endfor
.for fn in ${MBBSD_OBJS}
@@ -49,7 +49,7 @@ util_${fn}.o: ../mbbsd/${fn}.c
.endfor
xchatd: xchatd.c $(UTIL_OBJS) descrypt.c
- $(CC) $(CFLAGS) -o $@ $@.c $(UTIL_OBJS) descrypt.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(UTIL_OBJS) descrypt.c
install: $(PROGS)
install -d $(BBSHOME)/bin/