File: rules

package info (click to toggle)
fasm 1.73.09-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,548 kB
  • sloc: pascal: 4,299; asm: 3,056; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

FASM=fasm
# Use this to bootstrap
# FASM=$(CURDIR)/fasm

%:
	dh $@

override_dh_install:
	(cd source/libc && $(FASM) fasm.asm && gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -m32 fasm.o -o fasm)
	dh_install

override_dh_dwz:
	# do not run dwz

override_dh_clean:
	dh_clean
	rm -f source/libc/fasm source/libc/fasm.o