# $VER: DMakefile for OptIcon and Icon2C as of Thu Feb  3 03:09:58 1994
#
# (c)Copyright 1994 by Tobias Ferber
#
# This file is part of the Icon2C and OptIcon distribution.
#
# Icon2C and OptIcon are free software; you can redistribute them and/or
# modify them 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.
#
# Icon2C and Opticon are distributed in the hope that they 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 these programs; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

CC=dcc
CFLAGS=-3.0 -s -DDEBUG

all: icon2c opticon

# --- opticon

opticon: opticon.o memfn.o
	$(CC) $(CFLAGS) -o%(left) %(right)

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

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

# --- icon2c

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

# --- docs

docs:
	autodoc -C opticon.c > opticon.doc
	autodoc -C icon2c.c > icon2c.doc

# ---

clean:
	delete quiet opticon opticon.o memfn.o icon2c

dist:
	copy `cpdist -n` ram:opticon
