]> granicus.if.org Git - postgresql/blob - src/backend/utils/misc/Makefile
Remove silly use of DLLIMPORT.
[postgresql] / src / backend / utils / misc / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile--
4 #    Makefile for utils/misc
5 #
6 # IDENTIFICATION
7 #    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.24 2005/10/03 22:52:23 tgl Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/backend/utils/misc
12 top_builddir = ../../../..
13 include $(top_builddir)/src/Makefile.global
14
15 override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
16
17 OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o
18
19 # This location might depend on the installation directories. Therefore
20 # we can't subsitute it into pg_config.h.
21 ifdef krb_srvtab
22 override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
23 endif
24
25
26 all: SUBSYS.o
27
28 SUBSYS.o: $(OBJS)
29         $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
30
31 # guc-file is compiled as part of guc
32 guc.o: $(srcdir)/guc-file.c
33
34 $(srcdir)/guc-file.c: guc-file.l
35 ifdef FLEX
36         $(FLEX) $(FLEXFLAGS) $<
37         sed -e 's/^yy/GUC_yy/g' -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' lex.yy.c > $@
38         rm -f lex.yy.c
39 else
40         @$(missing) flex $< $@
41 endif
42
43 # Note: guc-file.c is not deleted by 'make clean',
44 # since we want to ship it in distribution tarballs.
45 clean: 
46         rm -f SUBSYS.o $(OBJS)
47         @rm -f lex.yy.c
48
49 depend dep:
50         $(CC) -MM $(CFLAGS) *.c >depend
51
52 ifeq (depend,$(wildcard depend))
53 include depend
54 endif