File: Makefile.am

package info (click to toggle)
mbr 1.2.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: sh: 3,941; ansic: 2,226; makefile: 116
file content (74 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This is a hack, but automake changes in incompatible ways.
AUTOMAKE=automake-1.9
ACLOCAL=aclocal-1.9
AUTOCONF=autoconf2.50
AUTOHEADER=autoheader2.50

if HAVE_VM86
SUBDIRS = harness
else
SUBDIRS =
endif

sbin_PROGRAMS = install-mbr
install_mbr_SOURCES = install-mbr.c mbr.S86 mbr.h
install_mbr_LDADD = mbr.o y2k.o
noinst_DATA = testdisk.b
noinst_SCRIPTS = wraptest

AS86 = as86
LD86 = ld86

AM_CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes

man_MANS = install-mbr.8

TESTS = tests/inst-1 tests/inst-3 \
    tests/inst-4 tests/inst-6 tests/inst-7 tests/inst-8
TESTS_ENVIRONMENT = sh wraptest

check_DATA = \
  table.b \
  mbr.b

EXTRA_DIST = table.S86 historic,v ${TESTS} ${man_MANS}

CLEANFILES = *.b *.s86 *.o86 *.lst *.sym test.* test-* \
  mbr-?.?.?.S86

SUFFIXES = .b .S86 .s86

.PRECIOUS: mbr.b y2k.b testdisk.b

%.s86: %.S86
	$(CC) -E -xc $< -o $@.tmp && mv $@.tmp $@

mbr-1.0.0.S86: historic,v
	co -pMBR_1_0_0 $< >$@
mbr-1.0.1.S86: historic,v
	co -pMBR_1_0_1 $< >$@
mbr-1.1.0.S86: historic,v
	co -pMBR_1_1_0 $< >$@
mbr-1.1.1.S86: historic,v
	co -pMBR_1_1_1 $< >$@
mbr-1.1.2.S86: historic,v
	co -pMBR_1_1_2 $< >$@
mbr-1.1.3.S86: historic,v
	co -pMBR_1_1_3 $< >$@

y2k.b: y2k.s86
y2k.s86: mbr.S86
	$(CC) -DY2KBUG -E -xc $< -o $@.tmp && mv $@.tmp $@

testdisk.b: testdisk.s86
testdisk.s86: mbr.S86
	$(CC) -DTESTDISK -E -xc $< -o $@.tmp && mv $@.tmp $@

%.b: %.s86
	$(AS86) -0 -b $@.tmp -s $*.sym -l $*.lst $< && mv $@.tmp $@

%.o: %.b
	xxd -i $< | $(CC) -c -x c - -o $@

%.o86: %.s86
	$(AS86) -0 -w -u -o $@.tmp -l $*.lst $< && mv $@.tmp $@