#
# This file and its contents are supplied under the terms of the
# Mozilla Public License (MPL) version 2.0.  You may only use this
# file in accordance with the terms of version 2.0 of the MPL.
#
# A full copy of the text of the MPL should have accompanied this
# source.  A copy of the MPL is also available via the Internet at
# https://www.mozilla.org/en-CA/MPL/2.0.
#
# This Source Code Form is "Incompatible With Secondary Licenses",
# as defined by the Mozilla Public License, v. 2.0.
#
# This Makefile re-builds the libraries for ccc68.
#
# (C) Copyright Rich Teer 1990, 2023, 2026.
#

all: crts.b example.b

objs: big_stack.b chg_context.b clib.b duart.b exit.b int_handler.b pit.b proc.b save_regs.b set_vector.b

crts.b: crts.c
	cc68 -o $@ $^ $(objs)

example.b: example.c
	cc68 -o $@ $^ $(objs)

%.b: %.c
	cc68 -c -o $@ $^

%.b: %.s
	cc68 -c -o $@ $^
