summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-09-05 08:29:19 +0200
committerRemi Collet <remi@remirepo.net>2019-09-05 08:29:19 +0200
commit12436084f7377048e291406f04fae6dab1812e64 (patch)
treef713906f0604418cd8898a82c53ea5a50ea11570 /Makefile
duplicate 7.3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..78ac8ed
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+INCL1 := $(shell php-config --includes)
+INCL2 := -I $(shell php-config --include-dir)/sapi/embed
+LIBE := -lphp7
+LIBS := -lphp7 $(shell php-config --libs)
+
+include ../../common/Makefile
+
+tembed: tembed.c
+ gcc -Wall $(INCL1) $(INCL2) tembed.c $(LIBE) -o tembed