# $Id: Makefile,v 1.2 2001/12/15 16:52:18 michael Exp $

include ../config.make

.PHONY: all mrproper clean install uninstall

PROGS   = cbmformat
INC     = cbmformat.inc

all: $(PROGS)

clean:
	rm -f $(PROGS) *.o *.o65

mrproper: clean
	rm -f $(INC)

install: $(PROGS)
	install -m 755 -s $(PROGS) $(BINDIR)

uninstall:
	for f in $(PROGS) $(SCRIPTS); do rm -f $(BINDIR)/$$f; done

cbmformat.o: cbmformat.c cbmformat.inc
	$(CC) $(CFLAGS) -c cbmformat.c -o $@

cbmformat: cbmformat.o
	$(CC) $< -o $@ $(LINK_FLAGS)
