Revision 3c9fc94,
904 bytes
checked in by Hal Finkel <hfinkel@…>, 9 years ago
(diff) |
add ld cmds file
|
-
Property mode set to
100644
|
Line | |
---|
1 | CXX = /soft/compilers/bgclang/wbin/bgclang++ |
---|
2 | CXXFLAGS = -std=gnu++0x -O3 -g |
---|
3 | |
---|
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 | |
---|
7 | LDFLAGS = -lpthread -ldl |
---|
8 | |
---|
9 | # Set this to use the install target |
---|
10 | DESTDIR = /dev/null |
---|
11 | |
---|
12 | all: libmemlog.so memlog_s.o |
---|
13 | |
---|
14 | memlog_s.o: memlog.cpp |
---|
15 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o memlog_s.o memlog.cpp |
---|
16 | |
---|
17 | libmemlog.so: memlog.cpp |
---|
18 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.cpp |
---|
19 | |
---|
20 | install: all memlog_analyze README |
---|
21 | cp -a libmemlog.so memlog_s.o memlog_analyze README $(DESTDIR)/ |
---|
22 | echo '-Wl,--wrap,malloc,--wrap,valloc,--wrap,realloc,--wrap,calloc,--wrap,memalign,--wrap,free,--wrap,posix_memalign,--wrap,mmap,--wrap,mmap64,--wrap,munmap $(DESTDIR)/memlog_s.o -lpthread -ldl' > $(DESTDIR)/memlog_s_ld_cmds |
---|
23 | |
---|
24 | clean: |
---|
25 | rm -f memlog_s.o libmemlog.so |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.