annotate main/database/src/Makefile.in @ 11646:b257244ad466 octave-forge

Hopefully fix strict aliasing issues.
author i7tiol
date Mon, 22 Apr 2013 18:41:18 +0000
parents 7f910799533a
children 3fd12a47467e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11646
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
1 # We rely on g++ features, configure assures CXX=g++.
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
2 CXX := @CXX@
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
3
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
4 CXXFLAGS_NSA := "$(CXXFLAGS) -g -O2 -fno-strict-aliasing"
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
5
11394
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
6 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
7 converters_arr_comp.o pq_connection.o command.o \
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
8 pq_update_types.o pq_lo.o
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
9
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
10 pq_interface.oct: $(OBJECTS)
11631
7f910799533a Use pg_config also for libdir.
i7tiol
parents: 11553
diff changeset
11 @MKOCTFILE@ -o pq_interface.oct -L`@PG_CONFIG@ --libdir` -lpq $(OBJECTS)
11394
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
12
11646
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
13 converters.o: converters.cc converters.h wrap_endian.h
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
14 CXX=$(CXX) CXXFLAGS=$(CXXFLAGS_NSA) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c converters.cc
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
15
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
16 converters_arr_comp.o: converters_arr_comp.cc converters.h wrap_endian.h \
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
17 pq_connection.h command.h
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
18 CXX=$(CXX) CXXFLAGS=$(CXXFLAGS_NSA) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c converters_arr_comp.cc
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
19
11394
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
20 # be on the safe side with respect to include files
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
21 %.o: %.cc converters.h pq_connection.h command.h
11646
b257244ad466 Hopefully fix strict aliasing issues.
i7tiol
parents: 11631
diff changeset
22 CXX=$(CXX) @MKOCTFILE@ -I`@PG_CONFIG@ --includedir` -c $<
11394
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
23
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
24 .PHONY: clean
9aee227e296c Populated new database package with initial postgresql interface.
i7tiol
parents:
diff changeset
25 clean: ; rm -f *.o *.oct