Skip to content

Commit

Permalink
68000: enable cross compilation for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Sep 23, 2019
1 parent 25294b7 commit b5effcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mkcross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e
export VERSION=`utils/b-em-version-str.sh`
export VPATH='../src ../src/resid-fp ../src/NS32016 ../src/darm ../src/mc6809nc ../src/pdp11'
export VPATH='../src ../src/resid-fp ../src/NS32016 ../src/darm ../src/mc6809nc ../src/pdp11 ../src/musahi'

dlls='allegro-5.2.dll allegro_acodec-5.2.dll
allegro_audio-5.2.dll allegro_dialog-5.2.dll
Expand Down
12 changes: 9 additions & 3 deletions src/Makefile.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VPATH = . resid-fp NS32016 darm pdp11
VPATH = . resid-fp NS32016 darm musahi

CPP = i686-w64-mingw32-g++
CC = i686-w64-mingw32-gcc
Expand Down Expand Up @@ -122,12 +122,18 @@ PDP11OBJ = \
pdp11_debug.o \
copro-pdp11.o

M68000OBJ = \
mc68000tube.o \
m68kops.o \
m68kcpu.o \
m68kdasm.o

LIBS = -lz -lallegro_audio -lallegro_acodec -lallegro_primitives -lallegro_dialog -lallegro_image -lallegro_font -lallegro -mwindows -lgdi32 -lwinmm -lstdc++

all : b-em.exe hdfmt.exe jstest.exe gtest.exe

b-em.exe: $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ)
$(CC) $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ) -o "b-em.exe" $(LIBS)
b-em.exe: $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ) $(M68000OBJ)
$(CC) $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ) $(M68000OBJ) -o "b-em.exe" $(LIBS)

clean :
del *.o *.exe *.res
Expand Down

0 comments on commit b5effcd

Please sign in to comment.