##########################################################
#                                                        #
#  (c) OPTIMUM May 1998                                  #
#                                                        #
#  http://optimum.citeweb.net/index.html                 #
#                                                        #
#  Permission is granted to anyone to use this software  #
#  and to redistribute it freely.                        #
#                                                        #
##########################################################

PROG	= guimauve2

CC	= gcc
CFLAGS	= -Wall -O3

DEF	= -D PROG=\"$(PROG)\"

LIB	= -L/usr/lib/ -lm -L/usr/X11R6/lib/ -lX11

RM	= rm -f

VIEW	= cat

OBJ	= sintable.o xdemo.o zoom.o main.o fps.o

$(PROG):	$(OBJ)
		$(CC) -s $(LIB) $(OBJ) -o $(PROG)
	       @$(VIEW) README

xdemo.o:	xdemo.c xdemo.h

sintable.o:	sintable.c sintable.h xdemo.h

zoom.o:		zoom.c zoom.h xdemo.h

main.o:		main.c main.h xdemo.h fps.h sintable.h zoom.h

fps.o:		fps.c fps.h xdemo.h
		$(CC) $(DEF) $(CFLAGS) -c fps.c -o fps.o

clean:
		$(RM) $(OBJ) $(PROG)
		$(RM) core
		$(RM) .*~ *~
