#----------------------------------------------------------------------------------
#
#      EZWGL Examples
#
#----------------------------------------------------------------------------------
#
# use gcc is highly recommended

INCLUDE = -I../include 

JUNK = 

LIBS = -L../lib  -L/usr/X11R6/lib -lEZ ../jpeg/libjpeg.a -lX11 -lXext  -lm  -lc

CC= g++ 

CFLAG = -g $(INCLUDE)

EXAMPLES= Example1 Example2 Example3 Example4 Example5 Example6\
	  Example7 Example8 Example9 Example10 Example11 Example12S\
	  Example12T Example13S Example13T Example14 Example15\
	  Example16 ExampleTree ExampleFLB ExampleTimer ExampleInput\
          ExampleG1 ExampleG2 ExampleG3 ExampleG4 ExampleG Example\
          ExampleEHandler ExampleGGG GridBag ExampleLed clock meter\
          cursor ExampleImage 

#----------------------------------------------------------------------------------

all: $(EXAMPLES)

strip:
	strip $(EXAMPLES)

clean:
	$(RM)  $(EXAMPLES)

../lib/libEZ.a:
	cd ../lib; make all

.c.o:
	$(CC) $(CFLAG) -c $<

.o:
	$(CC) $(CFLAG) $<  -o $@  $(LIBS) $(JPEG_LIB)

.c:
	$(CC)  $(CFLAG)  $< -o $@  $(LIBS) $(JPEG_LIB)

#----------------------------------------------------------------------------------



