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

Last change on this file since 2826 was 2826, checked in by ksherdy, 6 years ago

Update perf scripts.

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