Revision 0ec59c5,
487 bytes
checked in by Hal Finkel <hfinkel@…>, 9 years ago
(diff) |
Commit something that compiles
|
-
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 |
---|
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.