
.SUFFIXES: .i

# edit any of the following if they dont apply to toyur system

CC = gcc
AS = as
MAKE = make
INSTALL = install

# you can leave this as is....

SRCS = test.c
	 
OBJS = $(SRCS:.c=.o)

# change these options as you need for maximum optimisation on your system

CCOPTIONS = \
-m486 \
-O2 \
-funroll-all-loops \
-malign-loops=2 \
-malign-jumps=2 \
-malign-functions=2 \
-ffast-math \
-Winline \
-g \
-I. \
-I/usr/X11/include \
-I/usr/X11R6/include \
-I/usr/openwin/include \


test: $(OBJS) 
	$(RM) $@
	$(CC) -o $@ $(OBJS) \
	-L/usr/X11R6/lib -L/usr/local/lib  \
	-L/usr/openwin/lib \
	-lX11 -lXext -lXtst -lFnlib -lImlib -ljpeg -ltiff -lpng -lz -lm -lgif 

clean::
	$(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut  "#"*

.c.o:
	$(CC) $(CCOPTIONS) -c $< -o $@

clean::
	$(RM) test

install:: test
	$(INSTALL) test $(DESTDIR)
	
