summaryrefslogtreecommitdiffstats
path: root/contrib/flashimg/Makefile
blob: 39f58e23fd0b5966792393b959dcb26f394120cf (plain) (blame)
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
CPPFLAGS	= -x assembler-with-cpp
AS86		= as86
LD86		= ld86
OBJDUMP		= objdump

.SUFFIXES:	.s86 .asm .aout .img

all:	flashimg.img

clean:
	rm -rf *.o *.s86 *.aout *.img

realclean: clean
	rm -rf *.img

.asm.s86: $*.asm $*.inc
	  $(CPP) $(CPPFLAGS) -o $@ $*.asm

.s86.img: $*.s86
	  $(AS86) -0 -b $@ $*.s86

# .s86.o:	$*.s86
# 	  $(AS86) -0 -a -o $@ $*.s86
# 
# .o.aout: $*.o
# 	  $(LD86) -0 -s -o $@ $*.o
# 
# .aout.img:
# 	  dd if=$*.aout of=$@ bs=32 skip=1