]> jfr.im git - irc/quakenet/newserv.git/blobdiff - geoip/Makefile
CHANSERV: remove accidental sendemail from SETEMAIL command.
[irc/quakenet/newserv.git] / geoip / Makefile
index 68f7794c64ae18eecd06643e83fbbd0bf782a961..1d32f89525dabaa4518039269361c6a663ffa839 100644 (file)
@@ -1,6 +1,21 @@
+include ../build.mk
 
-.PHONY: all
-all: geoip.so
+GEOIPDIRS=libGeoIP
+LDFLAGS+=-lc
 
-geoip.so: geoip.o libGeoIP/GeoIP.o
-       ld -shared -Bdynamic -o $@ $^
+.PHONY: all clean distclean $(GEOIPDIRS) dirs
+
+all: dirs geoip.so
+
+libGeoIP/libgeoip.a: dirs
+
+geoip.so: geoip.o libGeoIP/libgeoip.a
+
+dirs: $(GEOIPDIRS)
+
+$(GEOIPDIRS):
+       cd $@ && $(MAKE) $(MFLAGS) all
+
+clean:
+       rm -f */*.o */*.so *.o *.so */*.a
+       rm -rf .deps */.deps