# IconMaker -- DICE Makefile for DCC 2.07.56R (11.6.93)
#
# (c)Copyright 1995 by Tobias Ferber, ukjg@rz.uni-karlsruhe.de
#
# This file is part of the IconMaker distribution.
#
# IconMaker 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.
#
# IconMaker is 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 this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

# $VER: $Id$

CC	= dcc
LN	= dlink

CFLAGS	= -3.1 -s
LFLAGS	= -s
CLIBS   = cs.lib amiga30s.lib autos.lib

# IFFParse support object modules from the NDK

srcs = modules/parse.c         \
       modules/ilbmr.c         \
       modules/loadilbm.c      \
       modules/iffpstrings.c   \
       modules/getbitmap.c     \
       modules/unpacker.c

objs = $(srcs:"*.c":"*.o")
prog = im

all: $(prog)

$(objs): $(srcs)
	$(CC) $(CFLAGS) -I/ -c -o %(left) %(right)

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

$(prog) : $(objs) $(prog).o
	$(LN) $(LFLAGS) -o %(left) c.o %(right) $(CLIBS) x.o

# .PHONY targets

clean:
	delete quiet $(prog) $(prog).o

veryclean:
	delete quiet $(prog) $(prog).o $(objs)

dist: all
	copy `cpdist -n` ram:$(prog)
