ALL: example1 example2 example3 example4 example6

ITOOLSDIR = ../..

CFLAGS   = -I$(ITOOLSDIR) $(OPT) $(X11INCLUDEDIR)
LDIR     = $(ITOOLSDIR)/libs/libs$(BOPT)$(PROFILE)/$(ARCH)
LIBNAME  = $(LDIR)/Xtools.a
SOURCE   = 
OBJS     =
LIBS     = $(LDIR)/system.a
TLIBS    = $(LDIR)/tools.a
XLIBS    = $(X11LIB)

$(LIBNAME)($(OBJS)): ../basex11.h

include $(ITOOLSDIR)/bmake/$(ARCH).$(BOPT)$(PROFILE)
include $(ITOOLSDIR)/bmake/$(ARCH).x11
include $(ITOOLSDIR)/bmake/$(ARCH)

example1: example1.o $(LDIR)/Xtools.a 
	$(CC) -o example1 example1.o $(LIBNAME) $(LIBS) $(XLIBS) $(SLIB) -lm
example2: example2.o $(LDIR)/Xtools.a 
	$(CC) -o example2 example2.o $(LIBNAME) $(LIBS) $(XLIBS) $(SLIB) -lm
example3: example3.o $(LDIR)/Xtools.a 
	$(CC) -o example3 example3.o $(LIBNAME) $(TLIBS) $(LIBS) $(XLIBS) \
		$(SLIB) -lm
example4: example4.o $(LDIR)/Xtools.a 
	$(CC) -o example4 example4.o $(LIBNAME) $(TLIBS) $(LIBS) $(XLIBS) \
		$(SLIB) -lm
example5: example5.o $(LDIR)/Xtools.a 
	$(CC) -o example5 example5.o $(LIBNAME) $(TLIBS) $(LIBS) $(XLIBS) \
		$(SLIB) -lm
example6: example6.o $(LDIR)/Xtools.a 
	$(CC) -o example6 example6.o $(LIBNAME) $(TLIBS) $(LIBS) $(XLIBS) \
		$(SLIB) -lm

clean:
	$(RM) -f example[1-6].o
