include ../../Definition

#
# Linter CALL-interface examples
#

CFLAGS	= -c $(VERSION) $(SYSTEMS) $(OS) $(PACKING) $(LANGUAGE) -DNOVMEM -D_ASYNC_ \
	-I../../intlib -I$(OCI_INC)

INTLIB = ../../intlib/oci.a $(LIBRARY) $(NETLIB)

#INTLIB = ../../intlib/linapi.so  $(LIBRARY)

# explicit rules

allsampl = cdemo2 ocitest  errhand
allbin = cdemo2/cdemo2 ocitest/ocitest  errhand/errhand

all :	$(allbin)
	rm -f *.o


cdemo2/cdemo2 :   cdemo2/cdemo2.c
		 $(CC) $(CFLAGS) cdemo2/cdemo2.c $(LDKEY)cdemo2.o
		 $(LINKER) cdemo2.o $(LDKEY)cdemo2/cdemo2 $(INTLIB)

ocitest/ocitest : ocitest/ocitest.c
		 $(CC) $(CFLAGS) ocitest/ocitest.c $(LDKEY)ocitest.o
		 $(LINKER) ocitest.o $(LDKEY)ocitest/ocitest $(INTLIB)

errhand/errhand : errhand/errhand.c
		 $(CC) $(CFLAGS) errhand/errhand.c $(LDKEY)errhand.o
		 $(LINKER) errhand.o $(LDKEY)errhand/errhand $(INTLIB)

clean:
	rm -f $(allbin) >/dev/null
	rm -f *.o >/dev/null

cleansrc___:
	rm -f */*.c */*.h */*.in */*.out */*.sql >/dev/null
