Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMD2DSK: Offering a new utility to convert IMD files to DSK #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ decsys | Convert decimal listing file to a DECtape file
dtos8cvt | Convert a PDP-8 DECtape image from OS/8 format to simulator format.
gt7cvt | Convert a gt7 magtape dump to a SIMH magtape
hpconvert | Convert an HP disc image between SIMH and HPDrive formats
imd2dsk | Convert an ImageDisk (IMD) file to DSK (pure data)
indent | Convert simulator sources to 4-column tabs
littcvt | Remove density maker from litt format tapes
m8376 | Assembles 8 PROM files into a 32bit binary file
Expand Down
20 changes: 20 additions & 0 deletions converters/imd2dsk/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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)
Loading