Revision 510af01,
528 bytes
checked in by Hal Finkel <hfinkel@…>, 9 years ago
(diff) |
add an install target to the makefile
|
-
Property mode set to
100644
|
Line | |
---|
1 | CXX = /soft/compilers/bgclang/wbin/bgclang++ |
---|
2 | CXXFLAGS = -std=gnu++0x -O3 -g |
---|
3 | |
---|
4 | CPPFLAGS = |
---|
5 | LDFLAGS = -lpthread -ldl |
---|
6 | |
---|
7 | # Set this to use the install target |
---|
8 | DESTDIR = /dev/null |
---|
9 | |
---|
10 | all: libmemlog.so memlog_s.o |
---|
11 | |
---|
12 | memlog_s.o: memlog.cpp |
---|
13 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o memlog_s.o memlog.cpp |
---|
14 | |
---|
15 | libmemlog.so: memlog.cpp |
---|
16 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.cpp |
---|
17 | |
---|
18 | install: all memlog2dot README |
---|
19 | cp -a libmemlog.so memlog_s.o memlog2dot README $(DESTDIR)/ |
---|
20 | |
---|
21 | clean: |
---|
22 | rm -f memlog_s.o libmemlog.so |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.