# Makefile for ify
CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
CROSSBIN = $(CROSSDIR)/bin
CC=$(CROSSBIN)/cgcc
AR=$(CROSSBIN)/car
HOSTCC = cc
HOSTCCFLAGS = -O  -I. -Iatari -I../lib


# change these lines to say where to find the mgr #include files and libraries
# perhaps add -DOLDMGR to the end of CFLAGS
INCL= -I../../lib
CFLAGS=-O $(INCL) -mint -O -nostdinc -I/net/acae127/home/bammi/atari/mint/mintlib/include \
-fomit-frame-pointer -fcombine-regs

MGRLIB = ../../lib/libmgr.olb
LDFLAGS=$(MGRLIB) -mint -v
ALL = ify setname
all: mesg $(ALL)
mesg:
	@echo "If the compile fails, adjust CFLAGS and MGRLIB in the"
	@echo "makefile to say where to find the mgr #include files and"
	@echo "libraries."
	@echo " "
	@echo "If the compile still fails, or if ify compiles but hangs,"
	@echo "try adding -DOLDMGR to the end of the CFLAGS."
	@echo " "
	@echo "In the worst case, try changing CC to cc instead of gcc."
ify: ify.o icondata.o
	$(CC) ify.o icondata.o $(LDFLAGS) -o ify
ify.o: ify.c
icondata.o: icondata.c

setname: setname.o
	$(CC) setname.o $(LDFLAGS) -o setname

clean:
	rm -f *.o

clobber:
	rm -f $(ALL)
