mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
27 lines
364 B
Makefile
27 lines
364 B
Makefile
|
|
||
|
PROGRAM = pg_dumplo
|
||
|
|
||
|
OBJECTS = pg_dumplo.o
|
||
|
|
||
|
CFLAGS = -Wall -fpic -g
|
||
|
CC = gcc
|
||
|
RM = rm -f
|
||
|
INCLUDE = -I/usr/include/postgresql
|
||
|
LIBS =-lpq
|
||
|
|
||
|
COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDE)
|
||
|
LINK = $(CC) $(CFLAGS) -o $@ $(LIBS)
|
||
|
|
||
|
|
||
|
all: $(PROGRAM)
|
||
|
|
||
|
$(PROGRAM): $(OBJECTS)
|
||
|
$(LINK) $(OBJECTS)
|
||
|
|
||
|
.c.o: $<
|
||
|
$(COMPILE) -c $<
|
||
|
|
||
|
clean:
|
||
|
$(RM) -f *~ $(OBJECTS) $(PROGRAM)
|
||
|
|