]> foleosoft.com Git - Zeditty.git/commitdiff
Wed Jan 22 04:05:53 PM EST 2025
authorserver <[email protected]>
Wed, 22 Jan 2025 21:05:53 +0000 (16:05 -0500)
committerserver <[email protected]>
Wed, 22 Jan 2025 21:05:53 +0000 (16:05 -0500)
LISCENSE [new file with mode: 0644]
Makefile
lib/libzeditty.a [deleted file]
liscense.txt [deleted file]
src/zeditty.o [deleted file]
src/zeditty_ops.o [deleted file]
test/Makefile

diff --git a/LISCENSE b/LISCENSE
new file mode 100644 (file)
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.
index f71258f5f588c76517599123872ca9315f097789..3da71a09c64c9701718d6d8df1fa8e4189f361d7 100644 (file)
--- 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 (file)
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 (file)
index a3a9b5d..0000000
+++ /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 (file)
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 (file)
index 7bfa44e..0000000
Binary files a/src/zeditty_ops.o and /dev/null differ
index 036e668f69025a66670b20ca4aba5e05581c2dc3..3644b7fbf9eb4e1756082fb08a48606d110021b9 100644 (file)
@@ -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