summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-02-24 23:05:00 +0100
committerAki <please@ignore.pl>2021-02-24 23:05:00 +0100
commitffc14c05b5260166050397cfa50bb88299febea0 (patch)
tree1db69ffc70154062935d1e86fa66c66fdbf08835 /Makefile
parent5363bb572b05d0ae136c8db5fc8d9370ecff1d1d (diff)
downloadplop-ffc14c05b5260166050397cfa50bb88299febea0.zip
plop-ffc14c05b5260166050397cfa50bb88299febea0.tar.gz
plop-ffc14c05b5260166050397cfa50bb88299febea0.tar.bz2
Added default HANDLER argument
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 26bb34c..226323a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,11 @@ LDLIBS+=-llua5.3
PREFIX?=/usr/local
SHARE?=$(PREFIX)/share
+PLOP_DEFAULT_HANDLER?=$(SHARE)/plop/default.lua
plop: connection.o main.o plop.o stream.o response.o
+main.o: CFLAGS+=-DPLOP_DEFAULT_HANDLER=\"$(PLOP_DEFAULT_HANDLER)\"
main.o: plop.h
plop.o: connection.h plop.h stream.h
connection.o: connection.h