aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-28 00:31:29 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-28 00:31:29 -0500
commitcedd4bada6e88daa0c527380e6dc22f52685f197 (patch)
tree5d2b464e08ea5450362a59bfaabab4fb030d97dc
parent802b5a0760179d9a5fd2d241745733c42a67fcc4 (diff)
downloadunalf-cedd4bada6e88daa0c527380e6dc22f52685f197.tar.gz
Rename project to alftools.
-rw-r--r--.gitignore15
-rw-r--r--TODO.txt3
-rw-r--r--src/Makefile18
-rw-r--r--src/README_Windows.txt.in6
4 files changed, 28 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
index 0aa8c8e..84920d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,28 @@
testing/*.ALF*
testing/*.TXT*
+testing/*.png
+testing/*.zip
+testing/*.arc
+testing/Makefile
+testing/alf
testing/unalf
testing/wip.txt
testing/atari800.cfg
.makepp/
-unalf-*-win64.zip
+*-*-win64.zip
*~
*.o
src/alf
src/unalf
src/alfsum
+a.*
+b.*
+x.*
+y.*
+a
+b
+x
+y
1
2
3
diff --git a/TODO.txt b/TODO.txt
index 12c3fbf..e34e1d5 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -1,6 +1,3 @@
-- rename project. calling it "unalf" when it contains both alf and
- unalf is confusing. think of a good name first.
-
- fuzz unalf and unalf with afl++ or similar.
- clean up alf, try to make it faster.
diff --git a/src/Makefile b/src/Makefile
index 91cb6f0..da19876 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,4 +1,4 @@
-# Makefile for unalf, by B. Watson. WTFPL.
+# Makefile for alftools, by B. Watson. WTFPL.
# Tested with GNU make, BSD make, makepp, and Schily's dmake.
### Override these variables as needed. Don't override CFLAGS; use
@@ -24,7 +24,7 @@ PREFIX=/usr
MANDIR=$(PREFIX)/man
MAN1DIR=$(MANDIR)/man1
BINDIR=$(PREFIX)/bin
-DOCDIR=$(PREFIX)/doc/unalf-$(VERSION)
+DOCDIR=$(PREFIX)/doc/$(PROJ)-$(VERSION)
DESTDIR=
INSTALL_DATA=$(INSTALL) -m0644
INSTALL_PROGRAM=$(INSTALL) -m0755
@@ -35,17 +35,21 @@ STRIP=yes
#
### No user-serviceable parts below.
+PROJ=alftools
VERSION=0.2.0
CFLAGS=-DVERSION='"$(VERSION)"' -Wall -I../f65 $(COPT)
+BINS=alf alfsum unalf
+MANS=alf.1 alfsum.1 unalf.1
+
UNALF_OBJS=unalf.o io.o listalf.o extract.o f65.o glob.o opts.o usage.o self.o asmcode.o
ALFSUM_OBJS=alfsum.o self.o
ALF_OBJS=alf.o self.o alfusage.o
.PHONY: all clean install crosswin windows windows-upload realclean
-all: unalf unalf.1 alfsum alfsum.1 alf alf.1
+all: $(BINS) $(MANS)
# unalf and alfsum need explicit rules for BSD make compatibility.
# without them, bmake tries to run "cc -o unalf unalf.c" which ain't
@@ -97,7 +101,7 @@ alf.1: alf.rst ver.rst manftr.rst
$(RST2MAN) alf.rst > alf.1
clean:
- rm -rf *.o unalf alfsum *.exe wintmp \
+ rm -rf *.o $(BINS) *.exe wintmp \
alf.html unalf.html alfsum.html *.aarch64.elf *.com.dbg
# these are generated files, but they *are* checked into git.
@@ -133,14 +137,14 @@ unalf.html: unalf.rst
rst2html unalf.rst > unalf.html
windows: crosswin html
- rm -rf wintmp ../unalf-$(VERSION)-win64.zip
+ rm -rf wintmp ../$(PROJ)-$(VERSION)-win64.zip
mkdir -p wintmp/{doc,examples}
cp alf.exe unalf.exe alfsum.exe wintmp
cd .. ; for i in README.txt TODO.txt doc/*.txt doc/Arcinfo examples/*.txt; do perl -pe 's,\n,\r\n,;' $$i > src/wintmp/$$i; done
perl -p -e 's,\n,\r\n,;' -e 's,\@VERSION\@,$(VERSION),g;' README_Windows.txt.in > wintmp/README_Windows.txt
cp ../examples/*.alf wintmp/examples
cp alfsum.html unalf.html alf.html wintmp
- cd wintmp ; zip -r ../../unalf-$(VERSION)-win64.zip *
+ cd wintmp ; zip -r ../../$(PROJ)-$(VERSION)-win64.zip *
windows-upload: windows
- scp ../unalf-$(VERSION)-win64.zip sluk:public_html/html/unalf4win/
+ scp ../$(PROJ)-$(VERSION)-win64.zip sluk:public_html/html/$(PROJ)4win/
diff --git a/src/README_Windows.txt.in b/src/README_Windows.txt.in
index 9e376de..338a495 100644
--- a/src/README_Windows.txt.in
+++ b/src/README_Windows.txt.in
@@ -1,4 +1,4 @@
-This is the Windows binary release of unalf @VERSION@.
+This is the Windows binary release of alftools-@VERSION@.
See README.txt, unalf.html, and alfsum.html for full documentation.
@@ -7,8 +7,8 @@ do anything useful. You should copy unalf.exe and alfsum.exe to some
directory that's in your PATH, or else run them from the directory you
extracted them to, using the command prompt (CMD.EXE).
-The binaries (unalf.exe and alfsum.exe) were built with a cross gcc
-compiler on a Linux system. They should run on any recent 64-bit
+The binaries (alf.exe, unalf.exe, alfsum.exe) were built with a cross
+gcc compiler on a Linux system. They should run on any recent 64-bit
Windows OS. The author doesn't actually use Windows, so if you run
into problems, please let me know.