-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
51 lines (39 loc) · 1.36 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# Makefile for BoostStomp
# Elias Karakoulakis <[email protected]>
# GNU make only
.SUFFIXES: .cpp .o .a .s
.PHONY: all
include Make-globals
all:
$(MAKE) -C src/
install:
$(MAKE) -C src/
install -d $(DESTDIR)/include/booststomp
install -d $(DESTDIR)/lib
install src/libbooststomp.so.$(VERSION) $(DESTDIR)/lib
ln -sf $(DESTDIR)/lib/libbooststomp.so.$(VERSION) $(DESTDIR)/lib/libbooststomp.so
install src/libbooststomp.a $(DESTDIR)/lib
cp -r src/*.h $(DESTDIR)/include/booststomp
cp -r src/*.hpp $(DESTDIR)/include/booststomp
echo "Dont forget to run: "
echo " sudo ldconfig $(DESTDIR)/lib "
uninstall:
rm -rf $(DESTDIR)/include/booststomp
rm -f $(DESTDIR)/lib/libbooststomp*
dist: main
rm -f BoostStomp.tar.gz
tar -c --exclude-vcs --exclude "*.o" -hvzf BoostStomp.tar.gz *.cpp *.h *.hpp Makefile license/ README*
bindist: main
rm -f BoostStomp_bin_`uname -i`.tar.gz
tar -c --exclude=".git" --exclude ".svn" -hvzf BoostStomp_bin_`uname -i`.tar.gz main *.a *.so license/ README*
valgrind-test:
valgrind src/main
test: valgrind-test
clean:
cd src; rm -f main *.o *.a libbooststomp.so*
deb:
git clone --depth 0 git://github.com/ekarak/BoostStomp.git libbooststomp-$(VERSION)
tar --exclude-vcs -czvf libbooststomp_$(VERSION).orig.tar.gz libbooststomp-$(VERSION)
cd libbooststomp-$(VERSION) && dpkg-buildpackage
rm -rf libbooststomp-$(VERSION)