source:
Makefile
@
4598848
Revision 4598848, 678 bytes checked in by Hal Finkel <hfinkel@…>, 9 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[1bd82e0] | 1 | CXX = /soft/compilers/bgclang/wbin/bgclang++ |
[e1b15ec] | 2 | CXXFLAGS = -std=gnu++0x -O3 -g |
[0ec59c5] | 3 | |
[a7b97b9] | 4 | # When compiling with CXX=powerpc64-bgq-linux-g++, we need these: |
5 | CPPFLAGS = -I/bgsys/drivers/ppcfloor -I/bgsys/drivers/ppcfloor/spi/include/kernel/cnk | |
6 | ||
[14e2ab9] | 7 | LDFLAGS = -lpthread -ldl |
[0ec59c5] | 8 | |
[510af01] | 9 | # Set this to use the install target |
10 | DESTDIR = /dev/null | |
11 | ||
[493cb97] | 12 | all: libmemlog.so memlog_s.o |
[0ec59c5] | 13 | |
[1bd82e0] | 14 | memlog_s.o: memlog.cpp |
15 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o memlog_s.o memlog.cpp | |
[0ec59c5] | 16 | |
[1bd82e0] | 17 | libmemlog.so: memlog.cpp |
18 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.cpp | |
[0ec59c5] | 19 | |
[4598848] | 20 | install: all memlog_analyze README |
21 | cp -a libmemlog.so memlog_s.o memlog_analyze README $(DESTDIR)/ | |
[510af01] | 22 | |
[0ec59c5] | 23 | clean: |
[493cb97] | 24 | rm -f memlog_s.o libmemlog.so |
[0ec59c5] | 25 |
Note: See TracBrowser
for help on using the repository browser.