source: observatorio/simulacion/DB/Makefile @ 19dd423

simulacion
Last change on this file since 19dd423 was 19dd423, checked in by Alejandro <amujica@…>, 10 years ago

Actualizada la generacion de libdb.a con -fPIC

  • Property mode set to 100644
File size: 598 bytes
Line 
1PQ = /usr/include/postgresql
2
3CXX = g++ -O3 -g
4
5AR = ar
6
7LIBNAME = DbAccess
8
9LOCALLIB = lib$(LIBNAME).a
10
11WARN = -Wall -Wextra -Wcast-align -Wno-sign-compare -Wno-write-strings \
12       -Wno-parentheses -Wno-unused-function
13
14FLAGS = -std=c++0x -DDEBUG -D_GLIBCXX__PTHREADS $(WARN)
15
16INCLUDE = -I . -I $(PQ)
17
18SOURCES = dbProperties.C dbConnection.C dbQuery.C strQuery.C
19
20OBJECTS = dbProperties.o dbConnection.o dbQuery.o strQuery.o
21
22lib:
23        $(RM) $(LOCALLIB)
24        $(CXX) $(INCLUDE) -c $(SOURCES) $(FLAGS) -fPIC
25        $(AR) -cvq $(LOCALLIB) $(OBJECTS)
26
27clean:
28        $(RM) *~ *.o
29clean-all:
30        $(RM) *~ *.o $(LOCALLIB)
31
Note: See TracBrowser for help on using the repository browser.