# 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
CFLAGS = -Wall -DUNIX -m68030 -O3 -fomit-frame-pointer
LFLAGS = -lport -lsocket
# 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
CFLAGS += -UINTEL_END -DMOTOR_END
OBJS =micq.o icq_response.o sendmsg.o util.o ui.o rus_conv.o
HEADERS = datatype.h micq.h
#
all : micq

re : clean all

micq :: $(OBJS) $(HEADERS) 
	$(CC) $(CFLAGS) -o micq $(OBJS) $(LFLAGS)

$(OBJS) : $(HEADERS)      

clean ::
	rm $(OBJS)

