diff options
Diffstat (limited to 'src/libbbs/Makefile')
-rw-r--r-- | src/libbbs/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libbbs/Makefile b/src/libbbs/Makefile new file mode 100644 index 00000000..efbf9534 --- /dev/null +++ b/src/libbbs/Makefile @@ -0,0 +1,20 @@ + +SRCROOT= ../.. +.include "$(SRCROOT)/pttbbs.mk" + +CFLAGS+= -I$(SRCROOT)/include + +OBJS= log.o string.o money.o +TARGET= libbbs.a + + +.SUFFIXES: .c .o +.c.o: + $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c + +$(TARGET): $(OBJS) + $(AR) cru $@ $(OBJS) + ranlib $@ + +clean: + rm -f $(OBJS) $(TARGET) |