~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to contrib/cube/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# contrib/cube/Makefile
 
2
 
 
3
MODULE_big = cube
 
4
OBJS= cube.o cubeparse.o
 
5
 
 
6
EXTENSION = cube
 
7
DATA = cube--1.0.sql cube--unpackaged--1.0.sql
 
8
 
 
9
REGRESS = cube
 
10
 
 
11
EXTRA_CLEAN = y.tab.c y.tab.h
 
12
 
 
13
SHLIB_LINK += $(filter -lm, $(LIBS))
 
14
 
 
15
ifdef USE_PGXS
 
16
PG_CONFIG = pg_config
 
17
PGXS := $(shell $(PG_CONFIG) --pgxs)
 
18
include $(PGXS)
 
19
else
 
20
subdir = contrib/cube
 
21
top_builddir = ../..
 
22
include $(top_builddir)/src/Makefile.global
 
23
include $(top_srcdir)/contrib/contrib-global.mk
 
24
endif
 
25
 
 
26
 
 
27
# cubescan is compiled as part of cubeparse
 
28
cubeparse.o: cubescan.c
 
29
 
 
30
cubeparse.c: cubeparse.y
 
31
ifdef BISON
 
32
        $(BISON) $(BISONFLAGS) -o $@ $<
 
33
else
 
34
        @$(missing) bison $< $@
 
35
endif
 
36
 
 
37
cubescan.c: cubescan.l
 
38
ifdef FLEX
 
39
        $(FLEX) $(FLEXFLAGS) -o'$@' $<
 
40
else
 
41
        @$(missing) flex $< $@
 
42
endif
 
43
 
 
44
distprep: cubeparse.c cubescan.c
 
45
 
 
46
maintainer-clean:
 
47
        rm -f cubeparse.c cubescan.c