This repository has been archived on 2025-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
chibi-pc09/code/boot/makefile

34 lines
912 B
Makefile

# Makefile for CHIBI PC-09 Firmware
.PHONY: all clean
.IGNORE: clean
.DEFAULT_GOAL := all
# ------------------------------------------------------------------------------
# Project Defaults & Folders
# ------------------------------------------------------------------------------
TARGET := boot.bin
SRCDIR := src/
MAINSRC := $(SRCDIR)boot.s
SRCS := $(wildcard $(SRCDIR)*.s)
INCS := $(wildcard $(SRCDIR)*.inc)
# ------------------------------------------------------------------------------
# Toolchain Definitions
# ------------------------------------------------------------------------------
AS := asm6809
# ------------------------------------------------------------------------------
# Rules and Phony Targets
# ------------------------------------------------------------------------------
all: $(TARGET)
$(TARGET): $(SRCS) $(INCS)
$(AS) -o $(TARGET) $(MAINSRC)
clean:
rm -v $(TARGET)