source: Makefile @ a7b97b9

Revision a7b97b9, 670 bytes checked in by Hal Finkel <hfinkel@…>, 9 years ago (diff)

use kernel rank on the bgq instead of pid

  • Property mode set to 100644
Line 
1CXX = /soft/compilers/bgclang/wbin/bgclang++
2CXXFLAGS = -std=gnu++0x -O3 -g
3
4# When compiling with CXX=powerpc64-bgq-linux-g++, we need these:
5CPPFLAGS = -I/bgsys/drivers/ppcfloor -I/bgsys/drivers/ppcfloor/spi/include/kernel/cnk
6
7LDFLAGS = -lpthread -ldl
8
9# Set this to use the install target
10DESTDIR = /dev/null
11
12all: libmemlog.so memlog_s.o
13
14memlog_s.o: memlog.cpp
15        $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o memlog_s.o memlog.cpp
16
17libmemlog.so: memlog.cpp
18        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.cpp
19
20install: all memlog2dot README
21        cp -a libmemlog.so memlog_s.o memlog2dot README $(DESTDIR)/
22
23clean:
24        rm -f memlog_s.o libmemlog.so
25
Note: See TracBrowser for help on using the repository browser.