summaryrefslogtreecommitdiffstats
path: root/mbbsd/Makefile
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 14:36:46 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 14:36:46 +0800
commit716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a (patch)
treee4788ca9ad9ef5fd0ff849588200d52625060c88 /mbbsd/Makefile
parent7ca0e08f3bb2419e7aea55740c672a88fe9c62bd (diff)
downloadpttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.gz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.bz2
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.lz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.xz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.zst
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.zip
build banned ip list on compile
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/Makefile')
-rw-r--r--mbbsd/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index a635cb48..fb7d1638 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -47,6 +47,12 @@ $(PROG): $(OBJS)
../include/var.h: var.c
perl ../util/parsevar.pl < var.c > ../include/var.h
+../include/banip.h: ../util/banip.pl
+ perl ../util/banip.pl > $@
+
+mbbsd.o: mbbsd.c ../include/var.h ../include/banip.h
+ $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $<
+
test: $(PROG)
killall -9 testmbbsd || true
cp mbbsd testmbbsd