source: Makefile @ 0ec59c5

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

Commit something that compiles

  • Property mode set to 100644
RevLine 
[0ec59c5]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
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.