Tony Lawrence 302faa3658 IMD2DSK: Offering a new utility to convert IMD files to DSK
IMD files are created by the ImageDisk utility in a special format.
This tool allows to recreate a pure data file (.DSK) that can be
used under SimH.  The tool is coded solely based on the open description
of the IMD format published by the ImageDisk author, Dave Dunfield.
2024-11-21 15:24:20 -05:00

21 lines
432 B
Makefile

# all of these can be over-ridden on the "make" command line if they don't suit your environment.
TOOL=imd2dsk
CFLAGS=-O2 -DNDEBUG -Wall -Wextra -pedantic
BIN=/usr/local/bin
INSTALL=install
CC=gcc
$(TOOL): $(TOOL).c
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TOOL) $(TOOL).c $(LDLIBS)
.PHONY: clean install uninstall
clean:
rm -f $(TOOL)
install: $(TOOL)
$(INSTALL) -p -m u=rx,g=rx,o=rx $(TOOL) $(BIN)
uninstall:
rm -f $(BIN)/$(TOOL)