summaryrefslogtreecommitdiff
path: root/lua/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lua/Makefile')
-rw-r--r--lua/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/Makefile b/lua/Makefile
index d37eb81..db25977 100644
--- a/lua/Makefile
+++ b/lua/Makefile
@@ -45,6 +45,11 @@ CC.SO := $(CC) $(COPT) $(CFLAGS)
net.so: net.c libnet_decode.c
net.so: LDLIBS+=$(LDDNET) $(LDLNET)
net.so: CDEFS=$(DNETDEFS) $(LNETDEFS)
+net.so: dnet.h
+
+dnet.h:
+ if test -e /usr/include/dumbnet.h; then echo '#include<dumbnet.h>' > dnet.h; \
+ else echo '#include<dnet.h>' > dnet.h; fi
TNET=$(wildcard test-*.lua)
TOUT=$(TNET:.lua=.test)