summaryrefslogtreecommitdiffstats
path: root/src/libbbsutil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbbsutil/Makefile')
-rw-r--r--src/libbbsutil/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libbbsutil/Makefile b/src/libbbsutil/Makefile
new file mode 100644
index 00000000..eafe2ab5
--- /dev/null
+++ b/src/libbbsutil/Makefile
@@ -0,0 +1,20 @@
+
+SRCROOT= ../..
+.include "$(SRCROOT)/pttbbs.mk"
+
+CFLAGS+= -I$(SRCROOT)/include
+
+OBJS= file.o lock.o log.o net.o sort.o string.o time.o
+TARGET= libbbsutil.a
+
+
+.SUFFIXES: .c .o
+.c.o:
+ $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c
+
+$(TARGET): $(OBJS)
+ $(AR) cru $@ $(OBJS)
+ ranlib $@
+
+clean:
+ rm -f $(OBJS) $(TARGET)