mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
source directory. This involves mostly makefiles using $(srcdir) when they might have used ".". (Regression tests don't work with this, yet.) Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword in most places, to preserve necessary flags even when the user overrode the flags.
42 lines
860 B
Makefile
42 lines
860 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for regex
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.15 2000/10/20 21:03:46 petere Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/backend/regex
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS += -DPOSIX_MISTAKE
|
|
|
|
DEBUGOBJ =
|
|
|
|
OBJS = regcomp.o regerror.o regexec.o regfree.o
|
|
|
|
ifdef MULTIBYTE
|
|
DEBUGOBJ += ../utils/mb/SUBSYS.o
|
|
endif
|
|
|
|
all: SUBSYS.o
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
|
|
retest: retest.o SUBSYS.o $(DEBUGOBJ)
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
|
|
|
depend dep:
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
|
|
|
clean:
|
|
rm -f SUBSYS.o $(OBJS) retest retest.o
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|