# Demonstration program for Commodities Exchange
# Copyright 1988, I and I Computing, all rights reserved	
# may be freely used and distributed

PREDIR=RAD:
OBJDIR=RAD:
PRE=demo.pre
PRESRC=sysall.h

DEST=//

LIBRARYNAME=commodities.library

LFLAGS=/cxsupp/cx_support.lib -lc
CFLAGS=+I$(PREDIR)$(PRE) -DLIBNAME="$(LIBRARYNAME)" -I//include/

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

all: $(PREDIR)$(PRE) PopUp

DEMOO = demomain.o democx.o demowindow.o

# cx demo
PopUp: $(DEMOO)
	ln -o $@ $(DEMOO) $(LFLAGS)
	copy PopUp $(DEST)

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

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