Revision 430548b,
348 bytes
checked in by Hal Finkel <hfinkel@…>, 9 years ago
(diff) |
a working solution for static linking
|
-
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 memlog.o |
---|
8 | |
---|
9 | memlog.o: memlog.c |
---|
10 | $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog.o memlog.c |
---|
11 | |
---|
12 | libmemlog.so: memlog.c |
---|
13 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.c |
---|
14 | |
---|
15 | clean: |
---|
16 | rm -f memlog.o libmemlog.so |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.