--- /dev/null
+You can use it freely and do whatever you want with it (modify it, use it for commercial purposes, etc) as long as you don't remove the credit at the top of the `include/zeditty.h` file.
$(CC) $(CFLAGS) -c src/zeditty.c -o src/zeditty.o -Iinclude
$(AR) rcs lib/libzeditty.a src/zeditty.o src/zeditty_ops.o
+install:
+ mkdir -p lib/
+ $(CC) $(CFLAGS) -c src/zeditty_ops.c -o src/zeditty_ops.o
+ $(CC) $(CFLAGS) -c src/zeditty.c -o src/zeditty.o -Iinclude
+ $(AR) rcs lib/libzeditty.a src/zeditty.o src/zeditty_ops.o
+ sudo cp lib/libzeditty.a /usr/local/lib/
+ LD_LIBRARY_PATH=/usr/local/lib/
+ sudo ldconfig
+ sudo cp include/zeditty.h /usr/local/include/
+
+remove:
+ sudo rm /usr/local/lib/libzeditty.a
+ sudo rm /usr/local/include/zeditty.h
+
+uninstall:
+ sudo rm /usr/local/lib/libzeditty.a
+ sudo rm /usr/local/include/zeditty.h
clean:
rm -rf src/*.o lib/
make clean -C test/
+
+readme:
+ @pandoc -f markdown -t html -o - README.md
+++ /dev/null
-You can use it freely and do whatever you want with it (modify it, use it for commercial purposes, etc) as long as you don't remove the credit at the top of the `include/zeditty.h` file.
sh -c 'which sdcc || (echo Please install: sdcc && exit 1)'
sh -c 'which srec_cat || (echo Please install: srecord && exit 1)'
sh -c 'which valgrind || (echo Please install: valgrind && exit 1)'
- gcc interpret.c -o interpret -I../include -L../lib -lzeditty -std=gnu99
+ gcc interpret.c -o interpret -lzeditty -std=gnu99
sdasz80 -o crt0.rel crt0.s
sdcc crt0.rel -mz80 --no-std-crt0 hello.c -o ~tmp.hex
srec_cat ~tmp.hex -Intel -Output -Binary > hello.z80