Mercurial > forge
annotate main/database/src/Makefile.in @ 12719:65172e6662d6 octave-forge
Add copyright notices to configure.ac and Makefile.in.
author | i7tiol |
---|---|
date | Sat, 27 Feb 2016 11:15:29 +0000 |
parents | 1af86934c14e |
children |
rev | line source |
---|---|
12719
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
1 # Makefile for database package for Octave |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
2 # |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
3 # Copyright (C) 2016 Olaf Till <i7tiol@t-online.de> |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
4 # |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
5 # This program is free software; you can redistribute it and/or modify |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
6 # it under the terms of the GNU General Public License as published by |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
7 # the Free Software Foundation; either version 3 of the License, or |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
8 # (at your option) any later version. |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
9 # |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
10 # This program is distributed in the hope that it will be useful, but |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
11 # WITHOUT ANY WARRANTY; without even the implied warranty of |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
13 # General Public License for more details. |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
14 # |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
15 # You should have received a copy of the GNU General Public License |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
16 # along with this program; if not, see <http://www.gnu.org/licenses/>. |
65172e6662d6
Add copyright notices to configure.ac and Makefile.in.
i7tiol
parents:
12718
diff
changeset
|
17 |
11646 | 18 # We rely on g++ features, configure assures CXX=g++. |
19 CXX := @CXX@ | |
20 | |
12317
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
21 EXTRALIBS = |
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
22 ifeq ($(OS),Windows_NT) |
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
23 EXTRALIBS = -lws2_32 |
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
24 endif |
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
25 |
11647
3fd12a47467e
Do not ignore user CXXFLAGS when setting -fno-strict-aliasing.
i7tiol
parents:
11646
diff
changeset
|
26 ifndef CXXFLAGS |
3fd12a47467e
Do not ignore user CXXFLAGS when setting -fno-strict-aliasing.
i7tiol
parents:
11646
diff
changeset
|
27 CXXFLAGS_NSA := "-g -O2 -fno-strict-aliasing" |
12718
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
28 CXXFLAGS := "-g -O2" |
11647
3fd12a47467e
Do not ignore user CXXFLAGS when setting -fno-strict-aliasing.
i7tiol
parents:
11646
diff
changeset
|
29 else |
3fd12a47467e
Do not ignore user CXXFLAGS when setting -fno-strict-aliasing.
i7tiol
parents:
11646
diff
changeset
|
30 CXXFLAGS_NSA := "$(CXXFLAGS) -fno-strict-aliasing" |
3fd12a47467e
Do not ignore user CXXFLAGS when setting -fno-strict-aliasing.
i7tiol
parents:
11646
diff
changeset
|
31 endif |
11646 | 32 |
11394
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
33 OBJECTS := __pq_connect__.o pq_close.o pq_exec.o converters.o \ |
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
34 converters_arr_comp.o pq_connection.o command.o \ |
12718
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
35 pq_update_types.o pq_lo.o pq_conninfo.o __pq_internal_exit__.o \ |
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
36 error-helpers.o |
11394
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
37 |
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
38 pq_interface.oct: $(OBJECTS) |
12317
67adec29dee0
Applied Windows compatibility patch for John Donoghue.
i7tiol
parents:
12097
diff
changeset
|
39 @MKOCTFILE@ -o pq_interface.oct -L`@PG_CONFIG@ --libdir` -lpq $(OBJECTS) $(EXTRALIBS) |
11394
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
40 |
12718
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
41 converters.o: converters.cc converters.h wrap_endian.h config.h error-helpers.h |
11646 | 42 CXX=$(CXX) CXXFLAGS=$(CXXFLAGS_NSA) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c converters.cc |
43 | |
44 converters_arr_comp.o: converters_arr_comp.cc converters.h wrap_endian.h \ | |
12718
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
45 pq_connection.h command.h config.h error-helpers.h |
11646 | 46 CXX=$(CXX) CXXFLAGS=$(CXXFLAGS_NSA) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c converters_arr_comp.cc |
47 | |
11394
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
48 # be on the safe side with respect to include files |
12718
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
49 %.o: %.cc converters.h pq_connection.h command.h config.h error-helpers.h |
1af86934c14e
Make compatible with Octaves new exception-based error handling.
i7tiol
parents:
12317
diff
changeset
|
50 CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c $< |
11394
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
51 |
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
52 .PHONY: clean |
9aee227e296c
Populated new database package with initial postgresql interface.
i7tiol
parents:
diff
changeset
|
53 clean: ; rm -f *.o *.oct |