File: rules

package info (click to toggle)
splat 1.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,332 kB
  • sloc: cpp: 8,650; ansic: 993; sh: 442; lisp: 244; makefile: 31
file content (43 lines) | stat: -rwxr-xr-x 1,115 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/buildtools.mk

CXXFLAGS = -g -Wall -fomit-frame-pointer
CFLAGS = -g -Wall
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
         CXXFLAGS += -O0
         CFLAGS += -O0
     else
         CXXFLAGS += -O3
         CFLAGS += -O3
     endif

%:
	dh $@

override_dh_auto_configure:
	# debian/std-parms.h & debian/hd-parms.h were made using ./configure

override_dh_auto_build:
	#./build all
	cp debian/std-parms.h splat.h
	$(CXX) $(CXXFLAGS) -ffast-math itwom3.0.cpp splat.cpp -o splat -lm -lbz2
	cp debian/hd-parms.h splat.h
	$(CXX) $(CXXFLAGS) -ffast-math -pipe itwom3.0.cpp splat.cpp -o splat-hd -lm -lbz2
	rm -f splat.h
	(cd utils ; \
		$(CC) $(CFLAGS) citydecoder.c -o citydecoder)
	(cd utils ; \
		$(CC) $(CFLAGS) usgs2sdf.c -o usgs2sdf)
	(cd utils ; \
		$(CC) $(CFLAGS) srtm2sdf.c -o srtm2sdf -lbz2)
	(cd utils ; \
		rm -f srtm2sdf-hd ; ln -s srtm2sdf srtm2sdf-hd )
	(cd utils ; \
		$(CC) $(CFLAGS) fontdata.c -o fontdata -lz)
	(cd utils ; \
		$(CC) $(CFLAGS) bearing.c -o bearing -lm)