# 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
# -Wall
CFLAGS = -DUNIX -w -Werror
# Uncomment the below line if you get errors about wcolor_set
CFLAGS += -DNO_WCOLOR_SET
# Uncomment the below line for humorous messages
CFLAGS += -DFUNNY_MSGS 
# uncomment the line below for debuging info
CFLAGS += -ggdb
#CFLAGS += -DDEBUG
# 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
# uncomment below if the linker complains about unresolved references
# to wcolor_set
CFLAGS += -DNO_WCOLOR_SET
OBJS =zicq.o icq_response.o sendmsg.o util.o ui.o rus_conv.o
HEADERS = datatype.h zicq.h
#
all : zicq

re : clean all

zicq :: $(OBJS) $(HEADERS) 
	$(CC) $(CFLAGS) -lpthread -lncurses -o ../zicq $(OBJS)

$(OBJS) : $(HEADERS)      

clean ::
	rm $(OBJS)
