mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-14 23:55:09 +00:00
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.
21 lines
432 B
Makefile
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)
|