source: trunk/PerfTest/xerces_markup_stats/Makefile @ 192

Last change on this file since 192 was 192, checked in by ksherdy, 11 years ago

Updated PerfTest? Makefiles to autodetect 32 vs. 64 bit architecture on Intel.
Initial Intel Markup Stats check in.
Renamed Xerces-C files names to be Xerces-C specific.

File size: 863 bytes
Line 
1CC= g++ $(CFLAGS)
2CFLAGS= -O3 # -g
3
4ARCH=$(shell getconf LONG_BIT)
5ifeq ($(ARCH),32)
6    AFLAGS=-march=pentium4
7    LIBS=-L/opt/xerces-c_2_8_0-x86-linux-gcc_3_4/lib
8    PAPI=-DPAPI -I/usr/local/papi-3.5.0-linux-x86/include -L/usr/local/papi-3.5.0-linux-x86/lib -lpapi     
9else
10    AFLAGS=-march=nocona -m64
11    LIBS=-L/opt/xerces-c_2_8_0-x86-linux-gcc_3_4/lib
12    PAPI=-DPAPI -I/usr/local/papi-3.5.0-linux-x86/include -L/usr/local/papi-3.5.0-linux-x86/lib64 -lpapi     
13endif
14
15INCLUDES=-I/opt/xerces-c_2_8_0-x86-linux-gcc_3_4/include
16LINKS=-lxerces-c
17
18all:    xerces_markup_stats.hpp xerces_markup_stats.cpp xerces_markup_stats_handlers.hpp xerces_markup_stats_handlers.cpp
19        $(CC) -o xerces_markup_stats xerces_markup_stats.cpp xerces_markup_stats_handlers.cpp -DCALC_AVG $(AFLAGS) $(INCLUDES) $(OBJECTS) $(LIBS) $(LINKS) $(PAPI)
20       
21clean:
22        rm -f xerces_markup_stats
Note: See TracBrowser for help on using the repository browser.