~ubuntu-branches/ubuntu/raring/osmpbf/raring

« back to all changes in this revision

Viewing changes to .pc/build_flags/src/Makefile

  • Committer: Package Import Robot
  • Author(s): Giovanni Mascellani
  • Date: 2012-06-15 10:04:57 UTC
  • Revision ID: package-import@ubuntu.com-20120615100457-hsek4dombdlbwxuh
Tags: 1.2.1-3
* Remove patch that sets a wrong location for protobuf.jar
  (closes: #676059).
* Bump Standards-Version to 3.9.3 (no changes required).
* Update copyright years.
* Fix Makefile so Debian build flags are honoured.
* Install POM file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
CXX = g++
 
3
CXXFLAGS = -O3
 
4
AR = ar
 
5
 
 
6
all: libosmpbf.a ../include/osmpbf/fileformat.pb.h ../include/osmpbf/osmformat.pb.h
 
7
 
 
8
libosmpbf.a: fileformat.pb.o osmformat.pb.o
 
9
        $(AR) -cr $@ fileformat.pb.o osmformat.pb.o
 
10
 
 
11
%.pb.o: %.pb.cc
 
12
        $(CXX) $(CXXFLAGS) -c -o $@ $<
 
13
 
 
14
%.pb.cc ../include/osmpbf/%.pb.h: %.proto
 
15
        protoc --proto_path=. --cpp_out=. $<
 
16
        cp *.pb.h ../include/osmpbf/
 
17
 
 
18
install:
 
19
        install -m 755 -g root -o root -d $(DESTDIR)/usr/lib
 
20
        install -m 644 -g root -o root libosmpbf.a $(DESTDIR)/usr/lib
 
21
        install -m 755 -g root -o root -d $(DESTDIR)/usr/include/osmpbf
 
22
        install -m 644 -g root -o root ../include/osmpbf/osmpbf.h $(DESTDIR)/usr/include/osmpbf
 
23
        install -m 644 -g root -o root ../include/osmpbf/fileformat.pb.h $(DESTDIR)/usr/include/osmpbf
 
24
        install -m 644 -g root -o root ../include/osmpbf/osmformat.pb.h $(DESTDIR)/usr/include/osmpbf
 
25
 
 
26
clean:
 
27
        rm -f *.pb.h *.pb.cc *.pb.o libosmpbf.a
 
28