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

Last change on this file since 1746 was 1746, checked in by ksherdy, 8 years ago

Renamed Makefile targets.

File size: 1.8 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/
24XERCES_3_1_1_L=-L$(XERCES_3_1_1_BASE)/lib/
25XERCES_3_1_1_l=-lxerces-c-3.1
26XERCES_3_1_1_I=-I$(XERCES_3_1_1_BASE)/include/
27
28PXERCES_BASE=/home/ksherdy/SW/nigelm-xerces-c-3.1.1/src
29PXERCES_L=-L$(PXERCES_BASE)/.libs/
30PXERCES_l=-lpxerces-c
31PXERCES_I=-I$(PXERCES_BASE)
32
33FLAGS=-DMEMCPY_IO -DWORLD2SCREEN -DDEFAULT_STYLE_EXT #-DSYSTEM_TIME -DGML2SVG_DEBUG
34
35xerces_2_8: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
36        $(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)
37
38xerces_3_1_1: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
39        $(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)
40
41xerces_icx: gml2svg_handler.hpp gml2svg_handler.cpp gml2svg.cpp
42        $(CC) -o gml2svg_icx gml2svg.cpp gml2svg_handler.cpp $(SRC) $(AFLAGS) -I$(LIBC) $(PXERCES_I) $(PXERCES_L) $(PXERCES_l) $(FLAGS) $(PAPI)
43
44clean:
45        rm -f gml2svg_2_8 gml2svg_3_1_1 gml2svg_icx
Note: See TracBrowser for help on using the repository browser.