Skip to content

Commit

Permalink
Add rule to build a disk image with all the DOS files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Jun 8, 2023
1 parent 356eccf commit 6485ee9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ EXTRA=\
startup.bat\
bwdfunct.bas\

# The resulting ATR image
ATR=bwdos.atr

#######################################################################
# Main rules

Expand All @@ -80,6 +83,7 @@ O_TOOLS_MULTI=$(TOOLS_MULTI:%=$(DISK)/%)
O_TOOLS_EOR=$(TOOLS_EOR:%=$(DISK)/%)
O_XDOS=$(XDOS:%=$(DISK)/%)
O_EXTRA=$(EXTRA:%=$(DISK)/%)
O_ATR=$(ATR:%=$(BUILD)/%)

OUT=\
$(O_TOOLS)\
Expand All @@ -88,7 +92,13 @@ OUT=\
$(O_XDOS)\
$(O_EXTRA)\

all: $(OUT)
# Main rule: build the ATR image
all: $(O_ATR)

# Build boot-able DOS disk image
$(O_ATR): $(OUT) | $(BUILD)
mkatr $@ $(DISK)/dos -b $(O_XDOS) \
$(sort $(O_TOOLS) $(O_TOOLS_MULTI) $(O_TOOLS_EOR) $(O_EXTRA))

# Build DOS
$(O_XDOS):dos/bwdos.asm | $(DISK)/dos
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ assembly syntax.

All the sources assemble and produce exactly the same binaries than in the
original distribution, there is a makefile to assemble all sources, just type
`make` to regenerate all the files in the `build/disk` folder.
`make` to regenerate all the files in the `build/disk` folder and build a
disk image using the `mkatr` tool.


Description of the files
Expand Down

0 comments on commit 6485ee9

Please sign in to comment.