apple2_prodos_utils/Makefile

53 lines
1.2 KiB
Makefile
Raw Normal View History

2017-11-06 18:01:31 +00:00
SOURCES := $(wildcard *.cpp) $(wildcard *.h)
TARGETS = prodosfs
2017-11-06 18:01:31 +00:00
CFLAGS = -O2
all:$(TARGETS)
.PHONY: install
install:
cp prodosfs ~/bin/
2017-11-06 18:01:31 +00:00
.PHONY: clean
clean:
@echo Sources: $(SOURCES)
2017-11-06 18:01:31 +00:00
$(RM) $(TARGETS)
prodosfs: $(SOURCES)
2017-11-06 18:01:31 +00:00
g++ $(CFLAGS) prodos.cpp -o $@
# ----------
test140: prodos
echo "A" > foo1.txt
echo "B" > foo2.txt
echo "C" > foo3.txt
echo -n "ABCDEFGHIJKLMNOPabcdefghijklmnop" > 32.txt
cat 32.txt 32.txt 32.txt 32.txt > 128.txt
cat 128.txt 128.txt 128.txt 128.txt 32.txt > text.bin
prodosfs test.dsk init -size=140 /TEST
prodosfs test.dsk dir
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt text.bin /
prodosfs test.dsk dir
2017-11-06 18:01:31 +00:00
test800: prodos
echo "A" > foo1.txt
echo "B" > foo2.txt
echo "C" > foo3.txt
prodosfs test.dsk init -size=800 /TEST
prodosfs test.dsk dir
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt /
prodosfs test.dsk dir
2017-11-06 18:01:31 +00:00
test32: prodos
echo "A" > foo1.txt
echo "B" > foo2.txt
echo "C" > foo3.txt
echo -n "ABCDEFGHIJKLMNOPabcdefghijklmnop" > 32.txt
cat 32.txt 32.txt 32.txt 32.txt > 128.txt
cat 128.txt 128.txt 128.txt 128.txt 32.txt > text.txt
prodosfs test.dsk init -size=32 /TEST
prodosfs test.dsk dir
prodosfs test.dsk cp foo1.txt foo2.txt foo3.txt text.txt /
prodosfs test.dsk dir
2017-11-06 18:01:31 +00:00