# Makefile for ify

CC = cc

# change these lines to say where to find the mgr #include files and libraries
# perhaps add -DOLDMGR to the end of CFLAGS
CFLAGS = -I../../lib -O
MGRLIB = ../../lib/libmgr.a

all: mesg ify setname
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) $(CFLAGS) ify.o icondata.o $(MGRLIB) -o ify
ify.o: ify.c
icondata.o: icondata.c
setname: setname.c
	$(CC) $(CFLAGS) setname.c $(MGRLIB) -o setname
