export HOME=$(CURDIR)/build
-CFLAGS = `dpkg-buildflags --get CFLAGS`
+CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+
CFLAGS += -Wall -Wno-comment
-LDFLAGS = `dpkg-buildflags --get LDFLAGS`
-CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g -O0
INSTALL_PROGRAM += -s
endif
-clean: clean-patched unpatch
-clean-patched:
+clean:
dh_testdir
dh_testroot
# Clean up files that Makefile should have cleaned
rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/z80
rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/ds390
rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/lib/src/gbz80
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/ds400rom.h
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/*390*
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/pic
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/pic16
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/z80
+ rm -rf $(CURDIR)/debian/cc1111/usr/share/sdcc/include/asm/gbz80
touch $@
# Must not depend on anything. This is to be called by binary-arch/binary-indep