mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-22 02:53:22 +02:00
30 lines
578 B
Makefile
30 lines
578 B
Makefile
|
|
SRCDIR= ../../src
|
|
|
|
include $(SRCDIR)/Makefile.global
|
|
|
|
CFLAGS+= $(CFLAGS_SL) -I$(SRCDIR)/include
|
|
|
|
ifdef REFINT_VERBOSE
|
|
CFLAGS+= -DREFINT_VERBOSE
|
|
endif
|
|
|
|
TARGETS= refint$(DLSUFFIX) refint.sql \
|
|
timetravel$(DLSUFFIX) timetravel.sql \
|
|
autoinc$(DLSUFFIX) autoinc.sql \
|
|
moddatetime$(DLSUFFIX) moddatetime.sql \
|
|
insert_username$(DLSUFFIX) insert_username.sql
|
|
|
|
CLEANFILES+= $(TARGETS)
|
|
|
|
all:: $(TARGETS)
|
|
|
|
%.sql: %.source
|
|
rm -f $@; \
|
|
C=`pwd`; \
|
|
sed -e "s:_OBJWD_:$$C:g" \
|
|
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" < $< > $@
|
|
|
|
clean:
|
|
rm -f $(TARGETS) *.o
|