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