aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-01-17 15:54:49 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-01-17 16:10:12 +0100
commit7cb6fcdaff2237cd24cf22fbc739192704838b6d (patch)
treecedd22bc2e220d69212b06683b12025dc3814e1e /Makefile
parent77509ceb56d430d949a89f2fc25aaded414193a8 (diff)
downloadponymap-7cb6fcdaff2237cd24cf22fbc739192704838b6d.tar.gz
ponymap-7cb6fcdaff2237cd24cf22fbc739192704838b6d.tar.xz
ponymap-7cb6fcdaff2237cd24cf22fbc739192704838b6d.zip
Rewrite to use CMake
Now the project is at least installable. Added a LICENSE file. Likely about to implement Lua plugins.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 0 insertions, 30 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7fce5e2..0000000
--- a/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-SHELL = /bin/sh
-# -Wunused-function is pretty annoying here, as everything is static
-CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -Wno-unused-function -ggdb
-# -lpthread is only there for debugging (gdb & errno)
-# -lrt is only for glibc < 2.17
-LDFLAGS = `pkg-config --libs libssl jansson` -lpthread -lrt -ldl -lcurses
-LDFLAGS_PLUGIN = $(LDFLAGS) -shared -fPIC
-
-.PHONY: all clean
-.SUFFIXES:
-
-targets = ponymap ponymap.1 plugins/http.so plugins/irc.so plugins/ssh.so
-
-all: $(targets)
-
-clean:
- rm -f $(targets)
-
-ponymap: ponymap.c utils.c plugin-api.h siphash.c
- $(CC) ponymap.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
-
-ponymap.1: ponymap
- help2man -No $@ ./$<
-
-plugins/%.so: plugins/%.c utils.c plugin-api.h
- $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS_PLUGIN)
-
-plugins/http.so: plugins/http.c utils.c plugin-api.h \
- http-parser/http_parser.c http-parser/http_parser.h
- $(CC) $< http-parser/http_parser.c -o $@ $(CFLAGS) $(LDFLAGS_PLUGIN)