6 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15 CFLAGS += -O2 -fomit-frame-pointer
19 --host=$(DEB_HOST_GNU_TYPE) \
20 --build=$(DEB_BUILD_GNU_TYPE) \
23 --mandir=\$${prefix}/share/man \
24 --infodir=\$${prefix}/share/info \
27 config.status: configure
29 CFLAGS="$(CFLAGS)" ./configure $(CONFIGURE_PARAM)
33 build-stamp: config.status
43 [ ! -f Makefile ] || make distclean
45 dh_clean config.status config.log po/stamp-po
51 $(MAKE) install DESTDIR=$(CURDIR)/debian/pcsxr
52 # Remove useless files
53 rm -f $(CURDIR)/debian/pcsxr/usr/lib/games/psemu/*.la
55 binary-indep: build install
57 binary-arch: build install
60 dh_installchangelogs ChangeLog
74 binary: binary-indep binary-arch
75 .PHONY: build clean binary-indep binary-arch binary install