source: Makefile @ 0a0ef57

Revision 0a0ef57, 492 bytes checked in by Hal Finkel <hfinkel@…>, 9 years ago (diff)

unw_get_proc_info does not work on ppc/ppc64; add getrusage info

  • Property mode set to 100644
Line 
1CC = /soft/compilers/bgclang/wbin/bgclang
2CFLAGS = -O3 -g
3
4UNW_HOME = ${HOME}/install/libunwind
5CPPFLAGS = -I$(UNW_HOME)/include
6LDFLAGS = -L$(UNW_HOME)/lib64 -Wl,-rpath,$(UNW_HOME)/lib64 -lunwind -lpthread -ldl
7
8all: memlog.so memlog.a
9
10memlog.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
15memlog.so: memlog.c
16        $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o memlog.so memlog.c
17
18clean:
19        rm -f memlog.o memlog.a memlog.so
20
Note: See TracBrowser for help on using the repository browser.