diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-02-16 09:52:48 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-02-16 09:55:44 -0800 |
commit | 6485e9930260e845025709be8664e99cffdb1db9 (patch) | |
tree | f20dcfcbb9e8fef2c85cc67668cc60c88503a8df /lua/Makefile | |
parent | 22b428e121d6a8458da79b2aa2f58bf795dfba6a (diff) | |
download | libnet-6485e9930260e845025709be8664e99cffdb1db9.tar.gz |
Autodetect whether dnet.h is provided as dumbnet.h
Diffstat (limited to 'lua/Makefile')
-rw-r--r-- | lua/Makefile | 5 |
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) |