source: Makefile @ 430548b

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
RevLine 
[0ec59c5]1CC = /soft/compilers/bgclang/wbin/bgclang
[fc0b9bf]2CFLAGS = -std=gnu99 -O3 -g
[0ec59c5]3
[14e2ab9]4CPPFLAGS =
5LDFLAGS = -lpthread -ldl
[0ec59c5]6
[430548b]7all: libmemlog.so memlog.o
[0ec59c5]8
[430548b]9memlog.o: memlog.c
[0ec59c5]10        $(CC) $(CPPFLAGS) $(CFLAGS) -c -o memlog.o memlog.c
11
[65ecf6c]12libmemlog.so: memlog.c
13        $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.c
[0ec59c5]14
15clean:
[430548b]16        rm -f memlog.o libmemlog.so
[0ec59c5]17
Note: See TracBrowser for help on using the repository browser.