forked from CodeAsm/M2000
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.MSDOS
45 lines (39 loc) · 1.43 KB
/
Makefile.MSDOS
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
#### Makefile for M2000 MS-DOS
# Following #defines can be used:
# MSDOS Compile MS-DOS version
# DEBUG Compile with builtin debugger
# LSB_FIRST Compile for a low-endian machine
# X86_ASM Use inline 80x86 assembly
# HAVE_FTRUNCATE We have ftruncate()
CC = gcc # C compiler used
LD = gcc # Linker used
AS = gcc # Assembler used
CFLAGS = -Wall -m486 -fomit-frame-pointer -O2 \
-DLSB_FIRST -DHAVE_FTRUNCATE -DMSDOS \
-DX86_ASM
ASFLAGS = -c -Wall
LFLAGS = -s
OBJECTS = M2000.o P2000.o Z80.o Z80Debug.o \
MSDOS.o Asm.o DMA.o INT.o SB.o Bitmap.o
all: m2000.exe fontc.exe splitape.exe z80dasm.exe
m2000.exe: $(OBJECTS)
$(LD) $(LFLAGS) -Wl,-Map,m2000.map -o m2000.exe $(OBJECTS)
fontc.exe: fontc.o
$(LD) $(LFLAGS) -o fontc.exe fontc.o
splitape.exe: splitape.o
$(LD) $(LFLAGS) -o splitape.exe splitape.o
z80dasm.exe: Z80Dasm.o
$(LD) $(LFLAGS) -o z80dasm.exe Z80Dasm.o
M2000.o: M2000.c P2000.h Z80.h Help.h Z80IO.h
P2000.o: P2000.c P2000.h Z80.h Z80IO.h
Z80.o: Z80.c Z80.h Z80DAA.h Z80IO.h Z80CDx86.h
Z80Debug.o: Z80Debug.c Z80.h Z80IO.h Z80Dasm.h
MSDOS.o: MSDOS.c P2000.h MSDOS.h DMA.h INT.h Asm.h Bitmap.h Common.h
INT.o: INT.c P2000.h MSDOS.h DMA.h INT.h Asm.h Bitmap.h
DMA.o: DMA.c P2000.h MSDOS.h DMA.h INT.h Asm.h Bitmap.h
SB.o: SB.c P2000.h MSDOS.h DMA.h INT.h Asm.h Bitmap.h
Asm.o: Asm.S
Bitmap.o: Bitmap.c Bitmap.h
fontc.o: fontc.c
splitape.o: splitape.c
Z80Dasm.o: Z80Dasm.c Z80Dasm.h