source: Makefile @ 510af01

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
RevLine 
[1bd82e0]1CXX = /soft/compilers/bgclang/wbin/bgclang++
[e1b15ec]2CXXFLAGS = -std=gnu++0x -O3 -g
[0ec59c5]3
[14e2ab9]4CPPFLAGS =
5LDFLAGS = -lpthread -ldl
[0ec59c5]6
[510af01]7# Set this to use the install target
8DESTDIR = /dev/null
9
[493cb97]10all: libmemlog.so memlog_s.o
[0ec59c5]11
[1bd82e0]12memlog_s.o: memlog.cpp
13        $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o memlog_s.o memlog.cpp
[0ec59c5]14
[1bd82e0]15libmemlog.so: memlog.cpp
16        $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -o libmemlog.so memlog.cpp
[0ec59c5]17
[510af01]18install: all memlog2dot README
19        cp -a libmemlog.so memlog_s.o memlog2dot README $(DESTDIR)/
20
[0ec59c5]21clean:
[493cb97]22        rm -f memlog_s.o libmemlog.so
[0ec59c5]23
Note: See TracBrowser for help on using the repository browser.