source: Makefile @ e1b15ec

Revision e1b15ec, 377 bytes checked in by Hal Finkel <hfinkel@…>, 10 years ago (diff)

adjust the makefile to work with slightly-older gcc

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