File: rules

package info (click to toggle)
opense-basic 1%3A3.1.2-3
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,192 kB
  • ctags: 3,086
  • sloc: asm: 9,758; makefile: 43
file content (17 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	make
	z80-unknown-coff-as -oobj/stub.o debian/opense-stub.asm
	z80-unknown-coff-ld -oopense-stub.bin obj/stub.o
	cat opense-stub.bin /dev/zero | head -c 16k > opense-stub.rom
	chmod 644 opense.rom opense-stub.rom

override_dh_auto_clean:
	[ -d lst ] || mkdir lst
	[ -d obj ] || mkdir obj
	dh_auto_clean
	rm -f *.bin