Commit b324b59b authored by Marco d'Itri's avatar Marco d'Itri

Refactor the Makefile

parent b564c438
--- /dev/null
+++ b/Makefile.debian
@@ -0,0 +1,21 @@
@@ -0,0 +1,27 @@
+PKG_CONFIG ?= pkg-config
+CFLAGS ?= -g -O2
+
+DEFS := -DLIBWRAP $(shell $(PKG_CONFIG) --cflags libbsd-overlay) $(shell $(PKG_CONFIG) --cflags libevent)
+LIBS := -lwrap $(shell $(PKG_CONFIG) --libs libbsd-overlay) $(shell $(PKG_CONFIG) --libs libevent)
+DEFS := -DLIBWRAP
+LIBS := -lwrap
+
+DEFS += $(shell $(PKG_CONFIG) --cflags libbsd-overlay)
+LIBS += $(shell $(PKG_CONFIG) --libs libbsd-overlay)
+
+DEFS += $(shell $(PKG_CONFIG) --cflags libevent)
+LIBS += $(shell $(PKG_CONFIG) --libs libevent)
+
+CPPFLAGS += $(DEFS)
+
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment