#
# DMakeFile for the GadToolsBox program.
#
# Note that this DMakeFile executes Dice with the "-H" option.
# This option (pre-compiled headers) is only available with
# Dice v2.06.40 and up. Remove the "-hT:gted.m=gted.h" statement
# at the last line of the file to enable the compiling with
# lower versions of Dice
#
FLAGS  = -mRR
CFLAGS = -proto $(FLAGS)
LFLAGS = $(FLAGS)
SRCC   = main.c resources.c func.c globals.c setpalette.c \
         screenselect.c reqtools.c button.c checkbox.c strint.c listview.c \
         mx.c dripen.c cycle.c palette.c scroller.c slider.c \
         binary.c prefs.c coords.c windowtext.c genc.c windowspecial.c \
         screenspecial.c idcmp.c wflags.c new.c genasm.c menued.c itemed.c \
         iff.c grid.c box.c textnum.c projects.c print.c \
         getfile.c
OBJS   = $(SRCC:"*.c":"*.o")
LIBS   = -lnofragsr.lib reqtoolssr.lib powerpackersr.lib amigas20.lib

all: bump GadToolsBox delete

GadToolsBox : $(OBJS)
    genam Boopsi.s
    dcc $(LFLAGS) -o %(left) %(right) Boopsi.o $(LIBS)
    FileNote GadToolsBox "(c) Copyright 1991,92 Jaba Development"

$(OBJS) : $(SRCC)
    dcc $(CFLAGS) -o %(left) -c %(right) -HT:gted.m=gted.h

bump:
    Bump Globals.c ONLYDATE

delete:
    delete t:gted.m
