File: Makefile

package info (click to toggle)
libming 0.2a.cvs20020110-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,204 kB
  • ctags: 4,173
  • sloc: ansic: 19,467; yacc: 2,149; cpp: 1,518; java: 1,253; ruby: 516; perl: 462; python: 436; makefile: 295; sh: 4
file content (23 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

prefix=`php-config --prefix`

DEFINES = -DHAVE_MING -DCOMPILE_DL_MING -DZEND_NEW_ERROR_HANDLING

CFILES = ming.c

php_ming.so: ming.o ../libming.a
	${CC} -shared -fPIC ming.o ../libming.a -o php_ming.so -lm

ming.o: ${CFILES}
	${CC} -fPIC ${DEFINES} -c ming.c -I. -I.. `php-config --includes`

../libming.a:
	cd ..; make static

clean:
	rm -f php_ming.so ming.o

install: php_ming.so
	install -d $(DESTDIR)`php-config --extension-dir`
	install php_ming.so $(DESTDIR)`php-config --extension-dir`
	echo "Don't forget to add 'extension=php_ming.so' to php.ini!"