-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.mxe
37 lines (26 loc) · 874 Bytes
/
Makefile.mxe
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
NASM=nasm
CC=i686-w64-mingw32.static-gcc
LD=$(CC)
include version.inc
CFLAGS=-Wall -O0 -DVERSION=\"$(VERSION)\"
PRG=bootsector.bin booterify.exe exeinfo.exe jrromchk.exe pcjrloader.bin bin2exe.exe
all: $(PRG)
pcjrloader.bin: pcjrloader.asm
nasm $< -fbin -o $@ -O0 -DVERSION=\"$(VERSION)\" -l pcjrloader.lst
ls -lh $@
bootsector.bin: bootsector.asm
nasm $< -fbin -o $@ -O0 -DVERSION=\"$(VERSION)\"
ls -lh $@
booterify.exe: booterify.o bootstrap.o
$(LD) $(LDFLAGS) $^ -o $@
exeinfo.exe: exeinfo.o
$(LD) $(LDFLAGS) $^ -o $@
jrromchk.exe: jrromchk.o
$(LD) $(LDFLAGS) $^ -o $@
bin2exe.exe: bin2exe.o
$(LD) $(LDFLAGS) $^ -o $@
clean:
rm -f bootsector.bin *.o booterify.exe exeinfo.exe jrromchk.exe pcjrloader.bin
dist:
rm -f booterify_win32-$(VERSION).zip
zip booterify_win32-$(VERSION).zip $(PRG) *.c *.h *.asm *.map *.txt *.md *.inc bochs-config Makefile*