Compare commits

..

No commits in common. "36e1501e5aed36366048f9e558d98c96e3cded01" and "576063d929ca8a9bbd4b6b961af14e2b3876d6ed" have entirely different histories.

8 changed files with 26 additions and 21 deletions

View file

@ -17,13 +17,17 @@ OPTIM ?= 2
CFLAGS ?= -O$(OPTIM) \
-D_GNU_SOURCE=1 \
-I./src/ \
-I./libChf/src/ \
-L./libChf \
-DVERSION_MAJOR=$(VERSION_MAJOR) \
-DVERSION_MINOR=$(VERSION_MINOR) \
-DPATCHLEVEL=$(PATCHLEVEL) \
-I./src/ \
-I./libChf/src/
-DPATCHLEVEL=$(PATCHLEVEL)
LIBS = -L./libChf -lChf
LIBS = -lm -lChf -lXm -lutil
# X11CFLAGS = $(shell pkg-config --cflags x11 xext)
# X11LIBS = $(shell pkg-config --libs x11 xext xt)
SDLCFLAGS = $(shell pkg-config --cflags sdl2)
SDLLIBS = $(shell pkg-config --libs sdl2)
@ -33,7 +37,8 @@ NCURSESLIBS = $(shell pkg-config --libs ncursesw)
FULL_WARNINGS = no
DOTOS = src/cpu.o \
DOTOS = src/ui48_config.o \
src/cpu.o \
src/debug.o \
src/dis.o \
src/disk_io.o \
@ -48,14 +53,16 @@ DOTOS = src/cpu.o \
src/romram.o \
src/romram49.o \
src/serial.o \
src/x_func.o
DOTOS_UI48 = src/ui48_config.o \
src/x_func.o \
src/ui48_common.o \
src/ui48_sdl2.o \
src/ui48_ncurses.o \
src/ui48_emulator.o \
src/ui48_main.o
# \
# src/x11_lcd.o \
# src/x11.o \
# src/x11_main.o
MSFS = src/MSFs/cpu.msf \
src/MSFs/debug.msf \
@ -108,6 +115,7 @@ override CFLAGS := -std=c11 \
$(SDLCFLAGS) \
$(NCURSESCFLAGS) \
$(CFLAGS)
# $(X11CFLAGS) \
override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \
$(CPPFLAGS)
@ -120,8 +128,8 @@ all: libChf/libChf.a dist/saturn dist/saturn.cat docs
libChf/libChf.a:
make -C libChf
dist/saturn: $(DOTOS) $(DOTOS_UI48) libChf/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(SDLLIBS) $(NCURSESLIBS)
dist/saturn: $(DOTOS) libChf/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(X11LIBS) $(SDLLIBS) $(NCURSESLIBS)
dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/libChf.a
# UNUSED

5
dist/saturn40g vendored
View file

@ -1,7 +1,6 @@
#!/bin/bash -eu
cd "$(dirname "$0")" || exit 1
#CWD=$(pwd)
cd "$(dirname "$0")" ; CWD=$(pwd)
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
@ -25,4 +24,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset
fi
./saturn --hw hp40 --40g --state-dir "$STATEDIR" --rom rom.39g "$RAM" --mod mod --cpu cpu --hdw hdw "$@"
./saturn -face hp40 -hw hp40 -stateDir "$STATEDIR" -rom rom.39g $RAM "$@"

7
dist/saturn48gx vendored
View file

@ -1,7 +1,6 @@
#!/bin/bash -eu
cd "$(dirname "$0")" || exit 1
#CWD=$(pwd)
cd "$(dirname "$0")" ; CWD=$(pwd)
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
@ -30,4 +29,6 @@ fi
[ ! -e "$STATEDIR"/port1 ] && dd if=/dev/zero of="$STATEDIR"/port1 bs=1k count=128
[ ! -e "$STATEDIR"/port2 ] && dd if=/dev/zero of="$STATEDIR"/port2 bs=1k count=4096
./saturn --hw hp48 --48gx --state-dir "$STATEDIR" --rom gxrom-r "$RAM" --port1 port1 --port2 port2 --mod mod --cpu cpu --hdw hdw "$@"
#./saturn --hw hp48 --48gx --state-dir "$STATEDIR" --rom gxrom-r $RAM --port1 port1 --port2 port2 --mod mod --cpu cpu --hdw hdw "$@"
./saturn --hw hp48 --48gx --state-dir $STATEDIR --rom gxrom-r $RAM --port1 port1 --port2 port2 --mod mod --cpu cpu --hdw hdw "$@"

5
dist/saturn49g vendored
View file

@ -1,7 +1,6 @@
#!/bin/bash -eu
cd "$(dirname "$0")" || exit 1
#CWD=$(pwd)
cd "$(dirname "$0")" ; CWD=$(pwd)
STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
@ -25,4 +24,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset
fi
./saturn --hw hp49 --49g --state-dir "$STATEDIR" --rom rom.49g "$RAM" --mod mod --cpu cpu --hdw hdw "$@"
./saturn -face hp49 -hw hp49 -stateDir "$STATEDIR" -rom rom.49g $RAM "$@"

View file

@ -83,8 +83,6 @@
.- */
#include "cpu.h"
/*---------------------------------------------------------------------------
Macro/Data type definitions
---------------------------------------------------------------------------*/