aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-04-15 16:37:21 +0000
committerMike Buland <eichlan@xagasoft.com>2012-04-15 16:37:21 +0000
commitdf07e63244b763594fee882b2b3dfcc31fd44209 (patch)
treebb8979580bc9dc8e56ed3cc9d5c332987654117f /Makefile
parentda1de5cdb5c42ce811a66d377789e585042b98c7 (diff)
downloadlibbu++-df07e63244b763594fee882b2b3dfcc31fd44209.tar.gz
libbu++-df07e63244b763594fee882b2b3dfcc31fd44209.tar.bz2
libbu++-df07e63244b763594fee882b2b3dfcc31fd44209.tar.xz
libbu++-df07e63244b763594fee882b2b3dfcc31fd44209.zip
Updated copyright, packaging, makefile, etc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 486ca4d..ea8b1db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
1# 1#
2# Copyright (C) 2007-2011 Xagasoft, All rights reserved. 2# Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3# 3#
4# This file is part of the libbu++ library and is released under the 4# This file is part of the libbu++ library and is released under the
5# terms of the license contained in the file LICENSE. 5# terms of the license contained in the file LICENSE.
6# 6#
7 7
8OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/stable/*.cpp src/unstable/*.cpp src/experimental/*.cpp)) 8OBJECTS := $(patsubst %.cpp,%.o,$(wildcard src/stable/*.cpp src/unstable/*.cpp src/experimental/*.cpp))
9HEADERS := bu/signals.h bu/autoconfig.h bu/version.h bu/config.h $(foreach fn,$(wildcard src/stable/*.h src/unstable/*.h src/experimental/*.h),bu/$(notdir ${fn})) $(patsubst src/%,bu/%,$(wildcard src/compat/*.h)) 9HEADERS := bu bu/signals.h bu/autoconfig.h bu/version.h bu/config.h $(foreach fn,$(wildcard src/stable/*.h src/unstable/*.h src/experimental/*.h),bu/$(notdir ${fn})) $(patsubst src/%,bu/%,$(wildcard src/compat/*.h))
10TOOLS := $(patsubst src/tools/%.cpp,%,$(wildcard src/tools/*.cpp)) 10TOOLS := $(patsubst src/tools/%.cpp,%,$(wildcard src/tools/*.cpp))
11UNITS := $(patsubst src/unit/%.unit,unit/%,$(wildcard src/unit/*.unit)) 11UNITS := $(patsubst src/unit/%.unit,unit/%,$(wildcard src/unit/*.unit))
12TESTS := $(patsubst src/tests/%.cpp,tests/%,$(wildcard src/tests/*.cpp)) 12TESTS := $(patsubst src/tests/%.cpp,tests/%,$(wildcard src/tests/*.cpp))
@@ -22,6 +22,9 @@ tests: ${UNITS} ${TESTS}
22clean: 22clean:
23 -rm ${HEADERS} ${OBJECTS} libbu++.a ${TOOLS} ${UNITS} ${TESTS} 23 -rm ${HEADERS} ${OBJECTS} libbu++.a ${TOOLS} ${UNITS} ${TESTS}
24 24
25bu:
26 mkdir -p bu/compat
27
25bu/signals.h bu/config.h bu/autoconfig.h bu/version.h: bu/%: src/% 28bu/signals.h bu/config.h bu/autoconfig.h bu/version.h: bu/%: src/%
26 ln -s ../$< $@ 29 ln -s ../$< $@
27 30
@@ -61,6 +64,9 @@ viewcsv:
61bin2cpp: 64bin2cpp:
62 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma 65 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lbz2 -lz -llzma
63 66
67myriad:
68 g++ -ggdb -W -Wall -I. -L. $< -o $@ -lbu++ -lpthread
69
64${OBJECTS}: %.o: %.cpp 70${OBJECTS}: %.o: %.cpp
65 g++ -ggdb -W -Wall -I. $< -c -o $@ 71 g++ -ggdb -W -Wall -I. $< -c -o $@
66 72