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

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

Minor updates.

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
23#XERCES_3_1_1_BASE=/home/ksherdy/SW/xerces-c-3.1.1-x86-linux-gcc-3.4/
24XERCES_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
30XERCES_ICX_BASE=/home/ksherdy/Temp/icxml/xerces-c-3.1.1/src
31XERCES_ICX_L=-L$(XERCES_ICX_BASE)/.libs/
32XERCES_ICX_l=-lxerces-c
33XERCES_ICX_I=-I$(XERCES_ICX_BASE)/
34
35FLAGS=-DMEMCPY_IO -DDEFAULT_STYLE_EXT #-DWORLD2SCREEN #-DSYSTEM_TIME -DGML2SVG_DEBUG
36
37xerces_2_8: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
38        $(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)
39
40xerces_3_1_1: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
41        $(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) -DSYSTEM_TIME #$(PAPI)
42
43xerces_icx: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
44        $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) $(XERCES_ICX_I) $(XERCES_ICX_L) $(XERCES_ICX_l) $(FLAGS) -mstackrealign -DSYSTEM_TIME #$(PAPI)
45
46clean:
47        rm -f gml2svg_2_8 gml2svg_3_1_1 gml2svg_icx
Note: See TracBrowser for help on using the repository browser.