summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: cc11f0e4b242f1f8b8a863f9e7ef0dc208af0950 (plain)
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
.SUFFIXES: .bin .o .o64 .obj .obj64 .exe .asm .lst .pl

NASM = ../nasm
NASMOPT = -Ox -I../misc
PERL = perl

%.bin: %.asm $(NASM)
	$(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<

%.o: %.asm $(NASM)
	$(NASM) $(NASMOPT) -f elf32 -o $@ -l $*.lst $<

%.o64: %.asm $(NASM)
	$(NASM) $(NASMOPT) -f elf64 -o $@ -l $*.lst $<

%.obj: %.asm $(NASM)
	$(NASM) $(NASMOPT) -f win32 -o $@ -l $*.lst $<

%.obj64: %.asm $(NASM)
	$(NASM) $(NASMOPT) -f win64 -o $@ -l $*.lst $<

%.asm: %.pl
	$(PERL) $< > $@

all:

clean:
	rm -f *.com *.o *.o64 *.obj *.obj64 *.exe *.lst *.bin