mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-27 00:36:59 +08:00
examples/, locale/, and thread/ lacked .gitignore files and were also not connected up to top-level "make clean" etc. This had escaped notice because none of those directories are built in normal scenarios. Still, they have working Makefiles, so if someone does a "make" in one of these directories it would be good if (a) git doesn't bleat about the product files and (b) cleaning up removes them. This is a longstanding oversight, but since this behavior is probably only of interest to developers, there seems no need for back-patching. Michael Paquier and Tom Lane
23 lines
420 B
Makefile
23 lines
420 B
Makefile
#
|
|
# Makefile for example programs
|
|
#
|
|
|
|
subdir = src/test/examples
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
ifeq ($(PORTNAME), win32)
|
|
LDLIBS += -lws2_32
|
|
endif
|
|
|
|
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
|
override LDLIBS := $(libpq_pgport) $(LDLIBS)
|
|
|
|
|
|
PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo testlo64
|
|
|
|
all: $(PROGS)
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f $(PROGS) *.o
|