Mercurial > hg > index.cgi
comparison Makefile @ 74:e74d00ac6b79
Split some code into separate files for easier management (2)
Because the source for lwbasic is so large, split it into several
different files to make it easier to navigate and modify. This is
part two of the split. Also includes fix for dependency tracking
related to the split in the make file.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 06 Aug 2023 00:36:48 -0600 |
parents | 9c2e66ef5fa1 |
children | 5f8f0b0781e8 |
comparison
equal
deleted
inserted
replaced
73:2d52cd154ed1 | 74:e74d00ac6b79 |
---|---|
1 .PHONY: all | 1 .PHONY: all |
2 all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip | 2 all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip |
3 | 3 |
4 bin/lwbasic.rom: src/lwbasic.s | 4 lwb_srcs := consscr.s defs.s genio.s init.s interp.s irq.s keyb.s miscdata.s print.s progctrl.s vars.s |
5 lwb_srcs := $(addprefix src/,$(lwb_srcs)) | |
6 | |
7 bin/lwbasic.rom: src/lwbasic.s $(lwb_srcs) | |
5 lwasm --tabs=16 --raw --list=src/lwbasic-coco2.list --symbols --output=bin/lwbasic.rom src/lwbasic.s | 8 lwasm --tabs=16 --raw --list=src/lwbasic-coco2.list --symbols --output=bin/lwbasic.rom src/lwbasic.s |
6 bin/lwbasic-coco2b.rom: src/lwbasic.s | 9 bin/lwbasic-coco2b.rom: src/lwbasic.s $(lwb_srcs) |
7 lwasm --tabs=16 --raw --list=src/lwbasic-coco2b.list --symbols --output=bin/lwbasic-coco2b.rom -DCOCO2B=1 src/lwbasic.s | 10 lwasm --tabs=16 --raw --list=src/lwbasic-coco2b.list --symbols --output=bin/lwbasic-coco2b.rom -DCOCO2B=1 src/lwbasic.s |
8 bin/lwbasic-coco3.rom: src/lwbasic.s | 11 bin/lwbasic-coco3.rom: src/lwbasic.s $(lwb_srcs) |
9 lwasm --tabs=16 --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s | 12 lwasm --tabs=16 --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s |
10 | 13 |
11 .PHONY: clean | 14 .PHONY: clean |
12 clean: | 15 clean: |
13 rm -f bin/*.rom bin/*.zip | 16 rm -f bin/*.rom bin/*.zip |