File: rules

package info (click to toggle)
libowfat 0.30-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 4,180 kB
  • ctags: 1,478
  • sloc: ansic: 15,320; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 900 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_build:
	mkdir build-glibc
	$(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ DIET='' SHARED=1 libowfat.so
	$(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ clean
	$(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ DIET=''
	rm build-glibc/entities.h

	mkdir build-diet
	$(MAKE) -f $(CURDIR)/GNUmakefile -C build-diet SRC=$(CURDIR)/ DIET='diet -v -Os'
	rm build-diet/entities.h
	
	touch build-stamp

override_dh_clean:
	dh_clean # doesn't remove directories
	-rm -rf build-glibc build-diet

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

# empty targets:
override_dh_auto_install: