mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08: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) $<
|