summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-08-30 10:48:34 +0200
committerRemi Collet <remi@php.net>2023-08-30 10:48:34 +0200
commit627e1502d5206fc341ffb78824c46ac1dc6adb1e (patch)
tree9a634f03b71baac7f7d4cc917ecd73d017d0c6a0 /Makefile
duplicate 8.2
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