c64-livecoding/host/Makefile
John Lorentzson f15ccf7799 Remove EMULATOR_PREVIEW, normal host now includes a default userprog
To test a user program, simply replace userprog.bin with the program
you want to run and assemble the host.
2025-07-30 16:53:13 +02:00

20 lines
469 B
Makefile

HOST_BINARY := host.prg
BUILD_DIR := ./build
SRC_DIR := ./src
HOST_PRG := $(BUILD_DIR)/$(HOST_BINARY)
PREVIEW_PRG := $(BUILD_DIR)/$(PREVIEW_BINARY)
SRCS := $(shell find $(SRC_DIR) -name '*.s' -or -name '*.inc')
TOPLEVEL := source.s
CL := cl65
CLFLAGS := -u __EXEHDR__ -t c64 -C c64-asm.cfg -l $(BUILD_DIR)/host.lst -Ln $(BUILD_DIR)/host.lbl
$(HOST_PRG): $(SRCS) userprog.bin
mkdir -p $(BUILD_DIR)
$(CL) -o $@ $(CLFLAGS) $(SRC_DIR)/$(TOPLEVEL)
all: $(HOST_PRG)