mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Assemble portability modules into libpgport library.
Some makefile simplifications.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.84 2002/07/15 21:34:05 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Makefile,v 1.85 2002/07/27 20:10:05 petere Exp $
|
||||
|
||||
subdir = src/interfaces/ecpg/preproc
|
||||
top_builddir = ../../../..
|
||||
@@ -18,10 +18,9 @@ override CFLAGS += -Wno-error
|
||||
endif
|
||||
|
||||
OBJS=preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o\
|
||||
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o \
|
||||
$(SNPRINTF) $(STRDUP)
|
||||
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
|
||||
|
||||
all: ecpg
|
||||
all: submake-libpgport ecpg
|
||||
|
||||
ecpg: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
||||
@@ -70,11 +69,3 @@ clean distclean:
|
||||
# inadequate tools.
|
||||
maintainer-clean: distclean
|
||||
rm -f $(srcdir)/preproc.c $(srcdir)/preproc.h $(srcdir)/pgc.c
|
||||
|
||||
|
||||
depend dep: preproc.c pgc.c
|
||||
$(CC) -MM $(CFLAGS) *.c >depend
|
||||
|
||||
ifeq (depend,$(wildcard depend))
|
||||
include depend
|
||||
endif
|
||||
|
Reference in New Issue
Block a user