Skip to content

Commit

Permalink
pdp11: enable cross compilation for windows of new PDP11 co-pro.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Sep 23, 2019
1 parent 063f919 commit 0c3bbb7
Show file tree
Hide file tree
Showing 2 changed files with 9 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'
export VPATH='../src ../src/resid-fp ../src/NS32016 ../src/darm ../src/mc6809nc ../src/pdp11'

dlls='allegro-5.2.dll allegro_acodec-5.2.dll
allegro_audio-5.2.dll allegro_dialog-5.2.dll
Expand Down
11 changes: 8 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
VPATH = . resid-fp NS32016 darm pdp11

CPP = i686-w64-mingw32-g++
CC = i686-w64-mingw32-gcc
Expand Down Expand Up @@ -117,12 +117,17 @@ SIDOBJ = \

MC6809OBJ = mc6809_debug.o mc6809_dis.o mc6809nc.o

PDP11OBJ = \
pdp11.o \
pdp11_debug.o \
copro-pdp11.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)
$(CC) $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) -o "b-em.exe" $(LIBS)
b-em.exe: $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ)
$(CC) $(OBJ) $(SIDOBJ) $(NS32KOBJ) $(MC6809OBJ) $(PDP11OBJ) -o "b-em.exe" $(LIBS)

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

0 comments on commit 0c3bbb7

Please sign in to comment.