1 | # -*- Mode: makefile -*- |
---|
2 | # Copyright (c) 2005 Matthew Wall, all rights reserved |
---|
3 | # makefile variables for compiling on unix environments |
---|
4 | # ----------------------------------------------------------------------------- |
---|
5 | |
---|
6 | #LIB = lgaul |
---|
7 | |
---|
8 | ### Set these directories to whatever is appropriate for your system. These |
---|
9 | ### are used only if you do a 'make install'. They specify where the library |
---|
10 | ### and header files should be installed. |
---|
11 | DESTDIR=/usr/local/pgsql |
---|
12 | HDR_DEST_DIR=$(DESTDIR)/include |
---|
13 | LIB_DEST_DIR=$(DESTDIR)/lib |
---|
14 | |
---|
15 | |
---|
16 | ### Make sure that these are ok for your operating system. |
---|
17 | MKDEPEND = makedepend |
---|
18 | MKDIR = mkdir -p |
---|
19 | CP = cp |
---|
20 | RM = rm -rf |
---|
21 | |
---|
22 | |
---|
23 | ### Uncomment a block from the list below appropriate for the compiler and |
---|
24 | ### operating system on which you are compiling. |
---|
25 | |
---|
26 | # gcc3 |
---|
27 | # verified 28dec04 on linux-x86 (fedora core 2 with gcc 3.3.3) |
---|
28 | # verified 28dec04 on linux-ppc (yellow dog 3 with gcc 3.2.2) |
---|
29 | # verified 28dec04 on win2k-x86 (cygwin-win2k with gcc 3.3.3) |
---|
30 | # verified 10jan05 on linux-x86 (fedora core 3 with gcc 3.4.2) |
---|
31 | CXX = g++ |
---|
32 | CXXFLAGS = -g -Wall |
---|
33 | LD = g++ -w |
---|
34 | AR = ar rv |
---|
35 | INSTALL = install -c |
---|
36 | RANLIB = echo no ranlib |
---|
37 | |
---|
38 | # gcc2 |
---|
39 | # verified 28dec04 on linux-x86 (redhat 6.2 with gcc 2.95.2) |
---|
40 | # verified 28dec04 on sol7-x86 (solaris 7 with gcc 2.95.2) |
---|
41 | # verified 28dec04 on sol6-sparc (solaris 6 with gcc 2.95.2) |
---|
42 | #CXX = gcc |
---|
43 | #CXXFLAGS = -g -Wall -O -fexceptions -O0 |
---|
44 | #LD = gc -w |
---|
45 | #AR = ar rv |
---|
46 | #INSTALL = install -c |
---|
47 | #RANLIB = echo no ranlib |
---|
48 | |
---|
49 | # macosx using gcc2 |
---|
50 | # verified 28dec04 macosx-ppc (macosx 10.3.7 with gcc 2.95.2) |
---|
51 | #CXX = gcc2 |
---|
52 | #CXXFLAGS = -g -Wall -fexceptions |
---|
53 | #LD = gcc2 -w |
---|
54 | #AR = ar rv |
---|
55 | #INSTALL = install |
---|
56 | #RANLIB = ranlib |
---|
57 | #CXX_LIBS = -lstdc++ |
---|
58 | |
---|
59 | # macosx using gcc3 |
---|
60 | # verified 28dec04 macosx-ppc (macosx 10.3.7 with gcc 3.3) |
---|
61 | #CXX = gcc |
---|
62 | #CXXFLAGS = -g -Wall -O -O0 |
---|
63 | #LD = gcc3 -w |
---|
64 | #AR = ar rv |
---|
65 | #INSTALL = install |
---|
66 | #RANLIB = ranlib |
---|
67 | |
---|
68 | # HPUX11 with aCC |
---|
69 | # verified 28dec04 hpux11-hppa (hpux 11 with aCC A.03.31) |
---|
70 | #CXX = aCC |
---|
71 | #CXXFLAGS = -g |
---|
72 | #LD = aCC |
---|
73 | #AR = ar rv |
---|
74 | #INSTALL = bsdinst -c |
---|
75 | #RANLIB = ranlib |
---|
76 | |
---|
77 | # AIX 4.3 with xlC |
---|
78 | # verified 28dec04 aix-ppc (aix 4.3.3 with xlC 6.0.0.5) |
---|
79 | #CXX = xlC |
---|
80 | #CXXFLAGS = -g -O -qrtti=all |
---|
81 | #LD = xlC |
---|
82 | #AR = ar rv |
---|
83 | #INSTALL = bsdinst -c |
---|
84 | #RANLIB = ranlib |
---|
85 | |
---|
86 | # IRIX 6.x with new 32-bit libraries |
---|
87 | # verified 28dec04 irix65-mips (irix 6.5 with CC 7.3.1.2m) |
---|
88 | #CXX = CC |
---|
89 | #CXXFLAGS = -g -fullwarn -n32 |
---|
90 | #LD = ld |
---|
91 | #AR = ar rv |
---|
92 | #INSTALL = bsdinst -c |
---|
93 | #RANLIB = echo no ranlib |
---|
94 | |
---|
95 | # IRIX 6.x with old 32-bit libraries |
---|
96 | # verified 28dec04 irix65-mips (irix 6.5 with CC 7.3.1.2m) |
---|
97 | #CXX = CC |
---|
98 | #CXXFLAGS = -g -fullwarn |
---|
99 | #LD = ld |
---|
100 | #AR = ar rv |
---|
101 | #INSTALL = bsdinst -c |
---|
102 | #RANLIB = echo no ranlib |
---|