-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.windows
80 lines (51 loc) · 1.96 KB
/
Makefile.windows
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
75
76
77
78
79
80
TARGET = tangerine
CC = x86_64-w64-mingw32-g++ -c -O3 -fpermissive -mthreads
LD = x86_64-w64-mingw32-g++
all: $(TARGET).exe
$(TARGET).exe: main.o tangerine.o tgVideoOut.o emul.o memio.o srec.o sdramDmaRegs.o rootRegs.o spiSdCardRegs.o usbHostRegs.o sdCard.o blitterRegs.o blitter.o usbHost.o disasm.o debugger.o console.o audioRegs.o audio.o gfxPixelGenRegs.o
$(LD) main.o tangerine.o tgVideoOut.o emul.o memio.o srec.o sdramDmaRegs.o rootRegs.o spiSdCardRegs.o usbHostRegs.o sdCard.o blitterRegs.o blitter.o usbHost.o disasm.o debugger.o console.o audioRegs.o audio.o gfxPixelGenRegs.o -lmingw32 -lSDL2main -lSDL2 -o bin/$(TARGET).exe
main.o: main.cpp
$(CC) -o main.o main.cpp
tangerine.o: tangerine.cpp
$(CC) -o tangerine.o tangerine.cpp
tgVideoOut.o: tgVideoOut.cpp
$(CC) -o tgVideoOut.o tgVideoOut.cpp
sdramDmaRegs.o: sdramDmaRegs.cpp
$(CC) -o sdramDmaRegs.o sdramDmaRegs.cpp
rootRegs.o: rootRegs.cpp
$(CC) -o rootRegs.o rootRegs.cpp
spiSdCardRegs.o: spiSdCardRegs.cpp
$(CC) -o spiSdCardRegs.o spiSdCardRegs.cpp
sdCard.o: sdCard.cpp
$(CC) -o sdCard.o sdCard.cpp
usbHostRegs.o: usbHostRegs.cpp
$(CC) -o usbHostRegs.o usbHostRegs.cpp
usbHost.o: usbHost.cpp
$(CC) -o usbHost.o usbHost.cpp
blitterRegs.o: blitterRegs.cpp
$(CC) -o blitterRegs.o blitterRegs.cpp
blitter.o: blitter.cpp
$(CC) -o blitter.o blitter.cpp
audioRegs.o: audioRegs.cpp
$(CC) -o audioRegs.o audioRegs.cpp
gfxPixelGenRegs.o: gfxPixelGenRegs.cpp
$(CC) -o gfxPixelGenRegs.o gfxPixelGenRegs.cpp
audio.o: audio.cpp
$(CC) -o audio.o audio.cpp
emul.o: emul.cpp
$(CC) -o emul.o emul.cpp
memio.o: memio.cpp
$(CC) -o memio.o memio.cpp
srec.o: srec.cpp
$(CC) -o srec.o srec.cpp
disasm.o: disasm.cpp
$(CC) -o disasm.o disasm.cpp
debugger.o: debugger.cpp
$(CC) -o debugger.o debugger.cpp
console.o: console.cpp
$(CC) -o console.o console.cpp
clean:
rm -f *.o *.rec *.disasm *.elf *.mif *.mi *.bin *.map *.exe
rm -f bin/*.exe
run: $(TARGET).exe
cd bin && start $(TARGET).exe shell.rec