LIBS=-lphp4  # $(shell php-config --libs)
INCLUDES=$(shell php-config --includes)
LIBDIRS=-L$(shell php-config --prefix)/lib
PHP_EXE=$(shell php-config --prefix)/bin/php
CC=gcc
GCC=g++
CFLAGS=-g -Wall
CCFLAGS=-c -Wall


libphpdlc.so: libphp.o
	$(CC) -shared -fPIC -o libphpdlc.so $(LIBS) libphp.o 

libphp.o: libphp.c
	$(CC) -c -fPIC $(INCLUDES) libphp.c

clean:
	rm -f *.o *.so 
