SYS_LIBRARIES = -lXm -lXt -lX11 -lm 
# Add this line if you want to use SOCKS (Change the path if not /usr/local/lib)
SYS_LIBRARIES += -L/usr/local/lib/ -lsocks -lresolv
# And this line too (for SOCKS)
DEFINES   = -DFIREWALL


CC = gcc
# Use this line to help debug:
# CCOPTIONS = -fpcc-struct-return -fwritable-strings -g
CCOPTIONS = -fpcc-struct-return -fwritable-strings -O2
OPTIMIZER = 

# In case the Motif-include files are not found by xmkmf put the path
# in MOTIFINC.
# ie.: If Xm.h is found at /usr/local/include/Motif/Xm/Xm.h use
# MOTIFINC = /usr/local/include/Motif
MOTIFINC = /

# In case the Motif-library files are not found by xmkmf put the path
# in LIBS.
# ie.: If libm.a is found at /usr/lib/Motif/libm.a use
# LIBS = /usr/lib/Motif
LIBS = 

# Where do you want the executable to go with 'make install'?
BINDIR = /usr/local/bin

# Where do you want the man-page to go?
MANPATH = /usr/local/man/man6

# Shouldn't need to change anything below this line
############################################################################

#undef ManSuffix
#define ManSuffix 6


SRCS = xfibs.c Fibw.c parse.c callbacks.c comms.c popup.c graphics.c mouse.c \
	ascii_board.c
OBJS = xfibs.o Fibw.o parse.o callbacks.o comms.o popup.o graphics.o mouse.o  \
	ascii_board.o

default::
	@echo "Please read the README-file. And all of it too... :)"
	@echo "And read the Last_changes file while you're at it..."

.c.o:
	$(CC) $(CFLAGS) -I$(MOTIFINC) -c $<

ComplexProgramTarget(xfibs)
InstallAppDefaults(XFibs)
InstallNonExec(xfibsrc, $$HOME/.xfibsrc)

# Use if you haven't access to the app-defaults directory
install.def::
	sed -e "s/^[^!]/xfibs*/" XFibs >> $$HOME/.Xdefaults
