dev-lua/lua-spawn: add
[lua-alt-overlay.git] / dev-lua / lua-spawn / files / lua-spawn-0.1_makefile.patch
blobf9784a17028814147e5f7f84171c482fd674616b
1 diff --git a/Makefile b/Makefile
2 new file mode 100644
3 index 0000000..9b4309b
4 --- /dev/null
5 +++ b/Makefile
6 @@ -0,0 +1,22 @@
7 +.SUFFIXES:
8 +.SUFFIXES: .o .c
10 +CFLAGS ?=
11 +LDFLAGS ?=
13 +CFLAGS+= -fPIC -shared
15 +PREFIX ?= /usr
17 +all: posix.so
19 +posix.so: spawn/posix.c vendor/compat-5.3/c-api/compat-5.3.h
20 + $(CC) $(CFLAGS) -Ivendor/compat-5.3/c-api/ -o $@ -c $<
22 +.PHONY: install
23 +install: all
24 + mkdir -p $(DESTDIR)$(INSTALL_LMOD)/spawn
25 + mkdir -p $(DESTDIR)$(INSTALL_CMOD)/spawn
26 + cp -f posix.so $(DESTDIR)$(INSTALL_CMOD)/spawn/
27 + cp -f spawn/init.lua $(DESTDIR)$(INSTALL_LMOD)/spawn/
28 + cp -f spawn/wait.lua $(DESTDIR)$(INSTALL_LMOD)/spawn/