# A15 -- Intuition V1.4 alpha 15 examples

OBJDIR=RAD:
PREDIR=RAD:
PRE=itests.pre
PRESRC=sysall.h
SHUTTLE=df1:a15

# this is the directory where I keep my V1.4 Intuition and graphics
# include files.  The system includes are found by the INCLUDE 
# environment variable
OTHERINCD=A:include

LFLAGS=-lc
CFLAGS=+I$(PREDIR)$(PRE)

.c.o:
	cc $(CFLAGS) -o $*.o $*.c

# build the pre-compiled header file before the programs
all: $(PREDIR)$(PRE) str pubsc scdemo cg

# copy the principals over to a floppy
shuttle:
	copy Str|PubSC|SCDemo|CG $(SHUTTLE)


# custom gadgets example
CGO=cgmain.o dialgadget.o igadgets.o ellipse.o images.o hookface.o istub.o
cg: $(CGO)
	ln $(CGO) -lm $(LFLAGS) -o $@

# test new string gadgets
STRO= str.o strgad.o strhooks.o hookface.o
str: $(STRO)
	ln $(STRO) $(LFLAGS) -o $@

# public screen tests
PUBSCO=psmain.o pubsc.o button.o commgad.o igadgets.o images.o textmsg.o istub.o
pubsc: $(PUBSCO)
	ln $(PUBSCO) $(LFLAGS) -o $@

# screen tests
SCDEMOO=scdemo.o istub.o
scdemo: $(SCDEMOO)
	ln $(SCDEMOO) $(LFLAGS) -o $@


# prepare pre-include (dump files)
$(PREDIR)$(PRE): $(PRE)
	copy $(PRE) $(PREDIR)

$(PRE): $(PRESRC)
	cc -I$(OTHERINCD) -A -o $(OBJDIR)pre_garbage.asm +H$(PRE) $(PRESRC)

