mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-28 18:27:18 +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) $<
|