799900f45a
latest version of musashi engine includes floating point emulation (plus a few patches to add in missing opcodes needed by ack - see tags JFF & TBB) added a few missing linux syscalls in sim.c pascal now runs pretty well quick test with modula2 passes c gets the floating point numbers wrong, so more work needed here other languages untested plat/linux68k/emu/build.lua is probably not quite right - the softfloat directory is compiled in the wrong place
43 lines
1,008 B
Makefile
43 lines
1,008 B
Makefile
EXENAME = sim
|
|
|
|
OSD_DOS = osd_dos.c
|
|
|
|
OSDFILES = osd_linux.c # $(OSD_DOS)
|
|
MAINFILES = sim.c
|
|
MUSASHIFILES = m68kcpu.c m68kdasm.c softfloat/softfloat.c
|
|
MUSASHIGENCFILES = m68kops.c
|
|
MUSASHIGENHFILES = m68kops.h
|
|
MUSASHIGENERATOR = m68kmake
|
|
|
|
# EXE = .exe
|
|
# EXEPATH = .\\
|
|
EXE =
|
|
EXEPATH = ./
|
|
|
|
.CFILES = $(MAINFILES) $(OSDFILES) $(MUSASHIFILES) $(MUSASHIGENCFILES)
|
|
.OFILES = $(.CFILES:%.c=%.o)
|
|
|
|
CC = gcc
|
|
WARNINGS = -Wall -Wextra -pedantic
|
|
CFLAGS = $(WARNINGS)
|
|
LFLAGS = $(WARNINGS)
|
|
|
|
TARGET = $(EXENAME)$(EXE)
|
|
|
|
DELETEFILES = $(MUSASHIGENCFILES) $(MUSASHIGENHFILES) $(.OFILES) $(TARGET) $(MUSASHIGENERATOR)$(EXE)
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
clean:
|
|
rm -f $(DELETEFILES)
|
|
|
|
$(TARGET): $(MUSASHIGENHFILES) $(.OFILES) Makefile
|
|
$(CC) -o $@ $(.OFILES) $(LFLAGS) -lm
|
|
|
|
$(MUSASHIGENCFILES) $(MUSASHIGENHFILES): $(MUSASHIGENERATOR)$(EXE)
|
|
$(EXEPATH)$(MUSASHIGENERATOR)$(EXE)
|
|
|
|
$(MUSASHIGENERATOR)$(EXE): $(MUSASHIGENERATOR).c
|
|
$(CC) -o $(MUSASHIGENERATOR)$(EXE) $(MUSASHIGENERATOR).c
|