diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-12 13:51:27 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-12 13:51:27 +0800 |
commit | 90719e3873c5ee17cef3e647e8e940df828cda51 (patch) | |
tree | 053f2b10a9af365f49bc43b420cf9cf88f8eb73c | |
parent | 574ac299fd75ed35b130394e4af7a464073d7988 (diff) | |
download | pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar.gz pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar.bz2 pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar.lz pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar.xz pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.tar.zst pttbbs-90719e3873c5ee17cef3e647e8e940df828cda51.zip |
* fix compile error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3675 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | include/libbbsutil.h | 3 | ||||
-rw-r--r-- | src/libbbs/Makefile | 2 | ||||
-rw-r--r-- | src/libbbsutil/Makefile | 2 |
4 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,4 @@ -SUBDIR= mbbsd util innbbsd +SUBDIR= src/libbbsutil src/libbbs mbbsd util innbbsd all install clean: .if !exists(/usr/local/lib/libhz.so) && !exists(/usr/lib/libhz.so) @@ -10,5 +10,5 @@ all install clean: @for i in $(SUBDIR); do\ cd $$i;\ $(MAKE) $@;\ - cd ..;\ + cd -;\ done diff --git a/include/libbbsutil.h b/include/libbbsutil.h index 8f9ac4f3..5b877f52 100644 --- a/include/libbbsutil.h +++ b/include/libbbsutil.h @@ -3,6 +3,9 @@ #include <stdint.h> #include <sys/types.h> + +#include "config.h" // XXX for TIMET64, but config.h has too much thing I don't want ... + #ifdef __GNUC__ #define GCC_CHECK_FORMAT(a,b) __attribute__ ((format (printf, a, b))) #else diff --git a/src/libbbs/Makefile b/src/libbbs/Makefile index efbf9534..025406a0 100644 --- a/src/libbbs/Makefile +++ b/src/libbbs/Makefile @@ -12,6 +12,8 @@ TARGET= libbbs.a .c.o: $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c +all: $(TARGET) + $(TARGET): $(OBJS) $(AR) cru $@ $(OBJS) ranlib $@ diff --git a/src/libbbsutil/Makefile b/src/libbbsutil/Makefile index eafe2ab5..f3ad5652 100644 --- a/src/libbbsutil/Makefile +++ b/src/libbbsutil/Makefile @@ -12,6 +12,8 @@ TARGET= libbbsutil.a .c.o: $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c +all: $(TARGET) + $(TARGET): $(OBJS) $(AR) cru $@ $(OBJS) ranlib $@ |