diff options
-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 $@ |