Fix make clean, rename cmd sample sources

This commit is contained in:
Joshua Bell 2019-01-08 08:08:54 -08:00
parent 585c5b0df3
commit e612444c4b
5 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,7 @@ HEADERS = $(wildcard *.inc)
clean:
rm -f $(OUTDIR)/*.o
rm -f $(OUTDIR)/*.list
rm -f $(OUTDIR)/$(TARGETS)
rm -f $(TARGETS)
$(OUTDIR)/%.o: %.s $(HEADERS)
@ -28,5 +28,5 @@ $(OUTDIR)/%.BIN $(OUTDIR)/%.SYS: $(OUTDIR)/%.o
$(CC65)/ld65 $(CCFLAGS) -o $@ $<
xattr -wx prodos.AuxType '00 20' $@
$(OUTDIR)/%.CMD: $(OUTDIR)/%.o
$(OUTDIR)/%.CMD: $(OUTDIR)/%.cmd.o
$(CC65)/ld65 $(CCFLAGS) -o $@ $<

View File

@ -27,6 +27,9 @@ Example:
```
Notes:
* Allocates a 3 page buffer to store the code and path
* Allocates a buffer to store the code and path
* Can be invoked as lower case (e.g. `path ...`)
* Applesoft BASIC commands are unaffected (but can't be CMD names)
Future:
* Support multi-segment paths (e.g. `/hd/cmds:/hd2/more.cmds`)

View File

2
path.s
View File

@ -17,7 +17,7 @@
;;; * 3 pages - code, path buffers
;;; TODO:
;;; * Support multi-segment path (e.g. /hd/bin:/hd/extras/bin
;;; * Support multi-segment path (e.g. /hd/bin:/hd/extras/bin)
;;; * Fail install if on an Integer BASIC machine
;;; * Skip leading spaces