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

Last change on this file since 3834 was 2851, checked in by cameron, 7 years ago

Static linking of xerces/icx library for gml2svg versions

File size: 2.2 KB
Line 
1CC= g++ $(CFLAGS)
2CFLAGS= -O3 #-fprofile-use
3
4PAPI_DIR=/usr/local/papi
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 #-DPAPI_EVENT_CODE=$(PAPI_EVENT_CODE)
10else
11    AFLAGS=-march=nocona -m64
12    PAPI = -I$(PAPI_DIR)/include -L$(PAPI_DIR)/lib -lpapi -DPAPI -Ilib/cclib #-DPAPI_EVENT_CODE=$(PAPI_EVENT_CODE)
13endif
14
15PAPI=
16
17LIBC=../../lib/C
18SRC=$(LIBC)/style_ext/style_ext.c $(LIBC)/gml2svg/util.cpp $(LIBC)/gml2svg/constants.cpp $(LIBC)/gml2svg/vancouver_constants.cpp
19
20HOME_DIR=$(shell cd;pwd)
21
22XERCES_3_1_1_BASE=$(HOME_DIR)/xerces-c-3.1.1/src
23XERCES_3_1_1_L=$(XERCES_3_1_1_BASE)/.libs
24XERCES_3_1_1_l=xerces-c
25XERCES_3_1_1_I=$(XERCES_3_1_1_BASE)/
26     
27XERCES_ICX_BASE=$(HOME_DIR)/icxml/src/xerces/src
28XERCES_ICX_L=$(XERCES_ICX_BASE)/.libs/
29XERCES_ICX_l=xerces-c
30XERCES_ICX_I=$(XERCES_ICX_BASE)/
31
32XERCES_ICX_PIPELINE_BASE=$(HOME_DIR)/icxml/branches/src-pipeline/xerces/src
33XERCES_ICX_PIPELINE_L=$(XERCES_ICX_PIPELINE_BASE)/.libs/
34XERCES_ICX_PIPELINE_l=xerces-c
35XERCES_ICX_PIPELINE_I=$(XERCES_ICX_PIPELINE_BASE)/
36
37FLAGS=-DMEMCPY_IO #-DTARE_TIME #-DGML2SVG_DEBUG  #-DTARE_TIME #-DDEFAULT_STYLE_EXT -DWORLD2SCREEN -DSYSTEM_TIME
38
39xerces_3_1_1: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
40        $(CC) -o gml2svg_3_1_1 gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_3_1_1_I)  -lpthread -Wl,-Bstatic -L$(XERCES_3_1_1_L)  -l$(XERCES_3_1_1_l) -Wl,-Bdynamic $(FLAGS) -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
41
42xerces_icx: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
43        $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_I)  -lpthread -Wl,-Bstatic -L$(XERCES_ICX_L)  -l$(XERCES_ICX_l) -Wl,-Bdynamic $(FLAGS) -mstackrealign -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
44
45xerces_icx_pipeline: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
46        $(CC) -o gml2svg_icx_pipeline gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) -I$(XERCES_ICX_PIPELINE_I) -Wl,-Bstatic -L$(XERCES_ICX_PIPELINE_L)  -l$(XERCES_ICX_PIPELINE_l) -Wl,-Bdynamic $(FLAGS) -lpthread -mstackrealign -Ilib/perflib $(PAPI) #-DSYSTEM_TIME
47
48clean:
49        rm -f gml2svg_2_8 gml2svg_3_1_1 gml2svg_icx gml2svg_icx_pipeline
50
Note: See TracBrowser for help on using the repository browser.