source: Makefile @ 493cb97

Revision 493cb97, 356 bytes checked in by Hal Finkel <hfinkel@…>, 9 years ago (diff)

static linking comment; make static .o memlog_s.o

  • Property mode set to 100644
Line 
1CC = /soft/compilers/bgclang/wbin/bgclang
2CFLAGS = -std=gnu99 -O3 -g
3
4CPPFLAGS =
5LDFLAGS = -lpthread -ldl
6
7all: libmemlog.so memlog_s.o
8
9memlog_s.o: memlog.c
10        $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog_s.o memlog.c
11
12libmemlog.so: memlog.c
13        $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.c
14
15clean:
16        rm -f memlog_s.o libmemlog.so
17
Note: See TracBrowser for help on using the repository browser.