ALL: example example2 example3

ITOOLSDIR = ../..

CFLAGS   = $(OPT) -I$(ITOOLSDIR)
SOURCE   = 
SOURCEC  = $(SOURCE)
SOURCEF  =
OBJS     = 
LDIR     = $(ITOOLSDIR)/libs/libs$(BOPT)$(PROFILE)/$(ARCH)
LIBNAME  = $(LDIR)/tools.a
LIB      = $(LDIR)/tools.a $(LDIR)/system.a

$(LIBNAME)($(OBJS)): ../itctx.h $(ITOOLSDIR)/vectors/vector.h

example: example.o $(LDIR)/tools.a 
	$(CLINKER) -o example example.o $(LIB) $(SLIB) -lm  
	$(RM) example.o

example2: example2.o $(LDIR)/tools.a
	$(CLINKER) -o example2 example2.o $(LIB) $(SLIB) -lm
	$(RM) example2.o

example3: example3.o $(LDIR)/tools.a
	$(FLINKER) -o example3 example3.o $(ITOOLSDIR)/fort/$(ARCH)/fort.a \
	              $(LIB) $(SLIB)
	$(RM) example3.o

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