~ubuntu-branches/ubuntu/raring/voxbo/raring

« back to all changes in this revision

Viewing changes to dbmisc/dbmakefile

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2010-06-06 11:33:11 UTC
  • Revision ID: james.westby@ubuntu.com-20100606113311-v3c13imdkkd5n7ae
Tags: upstream-1.8.5~svn1172
ImportĀ upstreamĀ versionĀ 1.8.5~svn1172

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# This is the master makefile for the database project
 
3
 
 
4
# For best results, edit the following to taste.  They are passed down
 
5
# to the lower makefiles.
 
6
 
 
7
# binary directory
 
8
ROOTDIR ?= /usr/local/vbdb
 
9
BINDIR ?= $(ROOTDIR)/bin
 
10
PRODIR ?= $(ROOTDIR)/pros
 
11
FFDIR ?= $(ROOTDIR)/etc/fileformats
 
12
 
 
13
# the c++ compiler of choice
 
14
CC ?= g++
 
15
 
 
16
# export stuff
 
17
# export CC BINDIR ROOTDIR
 
18
 
 
19
# Here are our targets
 
20
 
 
21
MAKEDIRS=lib vbwidgets vbview client server brainBrowser db_import db_network db_print util
 
22
INSTALLDIRS=client server
 
23
OUT=
 
24
 
 
25
# PHONY declaration makes life easier
 
26
.PHONY: clean install subdirs $(MAKEDIRS)
 
27
 
 
28
subdirs: $(MAKEDIRS)
 
29
 
 
30
$(MAKEDIRS):
 
31
        make -C $@
 
32
 
 
33
install:
 
34
        mkdir -p $(BINDIR)
 
35
        for dir in $(INSTALLDIRS) ; do make -C $$dir install ; done
 
36
 
 
37
clean:
 
38
        for dir in $(MAKEDIRS) ; do make -C $$dir clean ; done
 
39
        rm -f core *~ */*~ */core */*.o
 
40
 
 
41
client: lib
 
42
 
 
43
server: lib