mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-20 16:13:23 +02:00
16 lines
375 B
Makefile
16 lines
375 B
Makefile
|
# PGLIB is probably /usr/local/pgsql/lib
|
||
|
|
||
|
PGINCLUDE=${PGLIB}/../include
|
||
|
CFLAGS+=-I${PGINCLUDE}
|
||
|
|
||
|
install-earthdistance: ${PGLIB}/earthdistance.so
|
||
|
|
||
|
${PGLIB}/earthdistance.so: earthdistance.so
|
||
|
sudo install -C -g bin -o bin earthdistance.so ${PGLIB}
|
||
|
|
||
|
earthdistance.so: earthdistance.o
|
||
|
$(LD) -o $@ -Bshareable $<
|
||
|
|
||
|
earthdistance.o: earthdistance.c
|
||
|
$(CC) -o $@ -c $(CFLAGS) $<
|