source: proto/gml2svg/C/xerces/Makefile @ 1922

Last change on this file since 1922 was 1922, checked in by ksherdy, 7 years ago

Updated Makefile.

File size: 1.9 KB
Line 
1CC= g++ $(CFLAGS)
2CFLAGS= -O3 #-fprofile-use
3
4PAPI_DIR=/usr/local
5
6ARCH=$(shell getconf LONG_BIT)
7ifeq ($(ARCH),32)
8    AFLAGS=-march=pentium4
9    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib lib/cclib/cc.cxx
10else
11    AFLAGS=-march=nocona -m64
12    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib lib/cclib/cc.cxx
13endif
14
15LIBC=../../lib/C
16SRC=$(LIBC)/style_ext/style_ext.c $(LIBC)/gml2svg/util.cpp $(LIBC)/gml2svg/constants.cpp $(LIBC)/gml2svg/vancouver_constants.cpp
17
18XERCES_2_8_BASE=/home/ksherdy/SW/xerces-c_2_8_0-x86-linux-gcc_3_4
19XERCES_2_8_L=-L$(XERCES_2_8_BASE)/lib/
20XERCES_2_8_l=-lxerces-c
21XERCES_2_8_I=-I$(XERCES_2_8_BASE)/include/
22
23XERCES_3_1_1_BASE=/home/ksherdy/SW/xerces-c-3.1.1-x86-linux-gcc-3.4/
24#XERCES_3_1_1_BASE=/home/ksherdy/Temp/xerces-c-3.1.1-x86_64-linux-gcc-3.4
25XERCES_3_1_1_L=-L$(XERCES_3_1_1_BASE)/lib/
26XERCES_3_1_1_l=-lxerces-c-3.1
27XERCES_3_1_1_I=-I$(XERCES_3_1_1_BASE)/include/
28
29
30               
31
32XERCES_ICX_BASE=/home/ksherdy/Temp/icxml/src/xerces-c-3.1.1/src
33XERCES_ICX_L=-L$(XERCES_ICX_BASE)/.libs/
34XERCES_ICX_l=-lxerces-c
35XERCES_ICX_I=-I$(XERCES_ICX_BASE)
36
37FLAGS=-DMEMCPY_IO -DDEFAULT_STYLE_EXT #-DWORLD2SCREEN #-DSYSTEM_TIME -DGML2SVG_DEBUG
38
39xerces_2_8: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
40        $(CC) -o gml2svg_2_8 gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) $(XERCES_2_8_I) $(XERCES_2_8_L) $(XERCES_2_8_l) $(FLAGS) $(PAPI)
41
42xerces_3_1_1: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
43        $(CC) -o gml2svg_3_1_1 gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) $(XERCES_3_1_1_I) $(XERCES_3_1_1_L) $(XERCES_3_1_1_l) $(FLAGS) $(PAPI)
44
45xerces_icx: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
46        $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) $(XERCES_ICX_I) $(XERCES_ICX_L) $(XERCES_ICX_l) $(FLAGS) -mstackrealign #$(PAPI)
47
48clean:
49        rm -f gml2svg_2_8 gml2svg_3_1_1 gml2svg_icx
Note: See TracBrowser for help on using the repository browser.