From: server Date: Wed, 22 Jan 2025 21:05:53 +0000 (-0500) Subject: Wed Jan 22 04:05:53 PM EST 2025 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=3a2f9a6c6e762dfadd1fddd0ab9550233cf61546;p=Zeditty.git Wed Jan 22 04:05:53 PM EST 2025 --- diff --git a/LISCENSE b/LISCENSE new file mode 100644 index 0000000..a3a9b5d --- /dev/null +++ b/LISCENSE @@ -0,0 +1 @@ +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. diff --git a/Makefile b/Makefile index f71258f..3da71a0 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,26 @@ all: $(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 diff --git a/lib/libzeditty.a b/lib/libzeditty.a deleted file mode 100644 index 211e740..0000000 Binary files a/lib/libzeditty.a and /dev/null differ diff --git a/liscense.txt b/liscense.txt deleted file mode 100644 index a3a9b5d..0000000 --- a/liscense.txt +++ /dev/null @@ -1 +0,0 @@ -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. diff --git a/src/zeditty.o b/src/zeditty.o deleted file mode 100644 index f11cfcd..0000000 Binary files a/src/zeditty.o and /dev/null differ diff --git a/src/zeditty_ops.o b/src/zeditty_ops.o deleted file mode 100644 index 7bfa44e..0000000 Binary files a/src/zeditty_ops.o and /dev/null differ diff --git a/test/Makefile b/test/Makefile index 036e668..3644b7f 100644 --- a/test/Makefile +++ b/test/Makefile @@ -2,7 +2,7 @@ all: 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