summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-13 16:05:51 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-13 16:05:51 +0800
commitf076301f829cd83641259802d5bb9ef04f527946 (patch)
tree43c2c96c5a8237cdc358bb830d08f6b57b2689c8 /common
parent05edd556caefcf9b30686d4d3d8c0f1d57153d36 (diff)
downloadpttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.gz
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.bz2
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.lz
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.xz
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.tar.zst
pttbbs-f076301f829cd83641259802d5bb9ef04f527946.zip
Makefile cleanup
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4349 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common')
-rw-r--r--common/Makefile9
-rw-r--r--common/bbs/Makefile27
-rw-r--r--common/sys/Makefile21
3 files changed, 15 insertions, 42 deletions
diff --git a/common/Makefile b/common/Makefile
index 2fc631d4..5730a479 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -1,8 +1,3 @@
-SUBDIR= bbs sys
+SUBDIR:= bbs sys
-all install clean:
- @for i in $(SUBDIR); do\
- cd $$i;\
- $(MAKE) $@;\
- cd -;\
- done
+.include <bsd.subdir.mk>
diff --git a/common/bbs/Makefile b/common/bbs/Makefile
index 99086258..b93cada1 100644
--- a/common/bbs/Makefile
+++ b/common/bbs/Makefile
@@ -1,26 +1,13 @@
+MKLINT:=no
+MKPROFILE:=no
+MKPIC:=no
-SRCROOT= ../..
+SRCROOT:= ../..
.include "$(SRCROOT)/pttbbs.mk"
-OBJS= log.o file.o money.o names.o path.o time.o string.o
-# record.o
-TARGET= libcmbbs.a
-
-
-.SUFFIXES: .c .o
-.c.o: $(SRCROOT)/include/var.h
- $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c
-
-all: $(TARGET)
+SRCS:= log.c file.c money.c names.c path.c time.c string.c # record.c
+LIB:= cmbbs
install:
-$(SRCROOT)/include/var.h: $(SRCROOT)/mbbsd/var.c
- perl $(SRCROOT)/util/parsevar.pl < $(SRCROOT)/mbbsd/var.c > $(SRCROOT)/include/var.h
-
-$(TARGET): $(OBJS)
- $(AR) cru $@ $(OBJS)
- ranlib $@
-
-clean:
- rm -f $(OBJS) $(TARGET)
+.include <bsd.lib.mk>
diff --git a/common/sys/Makefile b/common/sys/Makefile
index 9c7bb257..39598f86 100644
--- a/common/sys/Makefile
+++ b/common/sys/Makefile
@@ -1,22 +1,13 @@
+MKLINT:=no
+MKPROFILE:=no
+MKPIC:=no
SRCROOT= ../..
.include "$(SRCROOT)/pttbbs.mk"
-OBJS= file.o lock.o log.o net.o sort.o string.o time.o crypt.o osdep.o
-TARGET= libcmsys.a
-
-
-.SUFFIXES: .c .o
-.c.o:
- $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $*.c
-
-all: $(TARGET)
+SRCS:= file.c lock.c log.c net.c sort.c string.c time.c crypt.c osdep.c
+LIB:= cmsys
install:
-$(TARGET): $(OBJS)
- $(AR) cru $@ $(OBJS)
- ranlib $@
-
-clean:
- rm -f $(OBJS) $(TARGET)
+.include <bsd.lib.mk>