source:
Makefile
@
fc0b9bf
Revision fc0b9bf, 430 bytes checked in by Hal Finkel <hfinkel@…>, 9 years ago (diff) | |
---|---|
|
Rev | Line | |
---|---|---|
[0ec59c5] | 1 | CC = /soft/compilers/bgclang/wbin/bgclang |
[fc0b9bf] | 2 | CFLAGS = -std=gnu99 -O3 -g |
[0ec59c5] | 3 | |
[14e2ab9] | 4 | CPPFLAGS = |
5 | LDFLAGS = -lpthread -ldl | |
[0ec59c5] | 6 | |
[65ecf6c] | 7 | all: libmemlog.so libmemlog.a |
[0ec59c5] | 8 | |
[65ecf6c] | 9 | libmemlog.a: memlog.c |
[0ec59c5] | 10 | rm -f memlog.o |
11 | $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog.o memlog.c | |
[65ecf6c] | 12 | ar cr libmemlog.a memlog.o |
13 | ranlib libmemlog.a | |
[0ec59c5] | 14 | |
[65ecf6c] | 15 | libmemlog.so: memlog.c |
16 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.c | |
[0ec59c5] | 17 | |
18 | clean: | |
[65ecf6c] | 19 | rm -f memlog.o libmemlog.a libmemlog.so |
[0ec59c5] | 20 |
Note: See TracBrowser
for help on using the repository browser.