Revision 0a0ef57,
492 bytes
checked in by Hal Finkel <hfinkel@…>, 10 years ago
(diff) |
unw_get_proc_info does not work on ppc/ppc64; add getrusage info
|
-
Property mode set to
100644
|
Line | |
---|
1 | CC = /soft/compilers/bgclang/wbin/bgclang |
---|
2 | CFLAGS = -O3 -g |
---|
3 | |
---|
4 | UNW_HOME = ${HOME}/install/libunwind |
---|
5 | CPPFLAGS = -I$(UNW_HOME)/include |
---|
6 | LDFLAGS = -L$(UNW_HOME)/lib64 -Wl,-rpath,$(UNW_HOME)/lib64 -lunwind -lpthread -ldl |
---|
7 | |
---|
8 | all: memlog.so memlog.a |
---|
9 | |
---|
10 | memlog.a: memlog.c |
---|
11 | rm -f memlog.o |
---|
12 | $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog.o memlog.c |
---|
13 | ar cr memlog.a memlog.o |
---|
14 | |
---|
15 | memlog.so: memlog.c |
---|
16 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o memlog.so memlog.c |
---|
17 | |
---|
18 | clean: |
---|
19 | rm -f memlog.o memlog.a memlog.so |
---|
20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.