source:
Makefile
@
493cb97
Revision 493cb97, 356 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 | |
[493cb97] | 7 | all: libmemlog.so memlog_s.o |
[0ec59c5] | 8 | |
[493cb97] | 9 | memlog_s.o: memlog.c |
10 | $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog_s.o memlog.c | |
[0ec59c5] | 11 | |
[65ecf6c] | 12 | libmemlog.so: memlog.c |
13 | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.c | |
[0ec59c5] | 14 | |
15 | clean: | |
[493cb97] | 16 | rm -f memlog_s.o libmemlog.so |
[0ec59c5] | 17 |
Note: See TracBrowser
for help on using the repository browser.