# CPDIST DMakefile for Dillon's DICE C Compiler om the Commodore AMIGA
#
# (c)Copyright 1992-93 by Tobias Ferber.
#
# This file is part of CPDIST.
#
# CPDIST is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 1 of the License, or
# (at your option) any later version.
#
# CPDIST is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with CPDIST; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

CC=dcc

# -DNO_GETKEY   use gets() instead of getkey()
# -DNO_PERROR   don't use perror()

CFLAGS= -1.3 -s

OBJS= main.o args.o msg.o cpdist.o keys.o getkey.o filecopy.o

all: cpdist

cpdist: $(OBJS)
	$(CC) $(CFLAGS) -o%(left) %(right)

main.o: main.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

args.o: args.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

msg.o: msg.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

keys.o: keys.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

cpdist.o: cpdist.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

getkey.o: getkey.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)

filecopy.o: filecopy.c
	$(CC) $(CFLAGS) -c -o%(left) %(right)


clean:
	delete #?.o cpdist
