]> granicus.if.org Git - postgresql/blob - src/backend/utils/init/Makefile
Use new utils/version.c instead of backend/utils/init/magic.c.
[postgresql] / src / backend / utils / init / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for utils/init
5 #
6 # IDENTIFICATION
7 #    $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.3 1996/11/12 06:46:40 bryanh Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 SRCDIR = ../../..
12 include ../../../Makefile.global
13
14 INCLUDE_OPT = -I../.. \
15               -I../../port/$(PORTNAME) \
16               -I../../../include
17
18 CFLAGS += $(INCLUDE_OPT)
19 # The following defines really ought to go in config.h 
20 CFLAGS += -DPOSTGRESDIR='"$(POSTGRESDIR)"' -DPGDATADIR='"$(DATADIR)"' \
21           -DPOSTPORT='"$(POSTPORT)"'
22
23 OBJS = enbl.o findbe.o globals.o miscinit.o postinit.o
24
25 all: SUBSYS.o
26
27 SUBSYS.o: $(OBJS)
28         $(LD) -r -o SUBSYS.o $(OBJS)
29
30 depend dep:
31         $(CC) -MM $(INCLUDE_OPT) *.c >depend
32
33 clean: 
34         rm -f SUBSYS.o $(OBJS)
35
36 ifeq (depend,$(wildcard depend))
37 include depend
38 endif
39