# Anyone who knows how to make Makefiles please help out.
# I have no clue but this appears to work fairly well
# be sure to use gmake

CC=GCC
OPTIM=-O2
CFLAGS= -DOS2 -DSTATUS -DFUNNY_MSGS 
LIBS= -lbsd -lreadline -ltermcap -lsocket
LFLAGS1=
BROKEN_BPRINTF_FLAGS=
SHELL=/bin/sh
CC = gcc

#CFLAGS = -Wall -DUNIX
# Uncomment the below line for humorous messages
#CFLAGS += -DFUNNY_MSGS 
# uncomment the line below for debuging info
#CFLAGS += -g
# switch the comments on the lines below if you're using a
# motorola or other bigendian processor
#CFLAGS += -DINTEL_END -UMOTOR_END
#LIBS += -lreadline
#CFLAGS += -UINTEL_END -DMOTOR_END
OBJS =micq.o icq_response.o sendmsg.o util.o ui.o
HEADERS = datatype.h micq.h
#
all : micq

re : clean all

micq :: $(OBJS) $(HEADERS) 
	$(CC) $(CFLAGS) -o micq $(OBJS) ${LIBS}
      
micq.o :: micq.c $(HEADERS)
	$(CC) $(CFLAGS) -c micq.c

util.o :: util.c $(HEADERS)
	$(CC) $(CFLAGS) -c util.c

ui.o :: ui.c $(HEADERS)
	$(CC) $(CFLAGS) -c ui.c

sendmsg.o :: sendmsg.c $(HEADERS)
	$(CC) $(CFLAGS) -c sendmsg.c

icq_response.o :: icq_response.c $(HEADERS)
	$(CC) $(CFLAGS) -c icq_response.c

clean ::
	rm -f $(OBJS) micq

