# ############################################################################
#
#                                GBase.
#
#                            PROPRIETARY DATA
#
#  Licensed Material - Property Of GBase
#
#  "Restricted Materials of GBase"
#
#  GBase Client SDK
#
#  (c)  Copyright GBASE  2006, 2008. All rights reserved.
#
# ############################################################################
#
# GBASEDBTDIR environment variable is not set by the install program.
# You will need to set this to the direxetory where you have installed
# the GBase ODBC product or modify this makefile to use the full
# path.
#
# You can also link your application direxetly with iclit09b.lib file
# which is import lib for GBase ODBC driver (instead of linking the
# applications with odbc32.lib - which is Microsoft ODBC driver manager
# import lib).

!include <win32.mak>

ESQL_LIBS  = isqlt09a.lib
ESQL_INCL=$(GBASEDBTDIR)\incl\esql
ESQL_CFLAGS=/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /I$(ESQL_INCL)

.SUFFIXES : .ec

# Rules
.c.exe:
	$(cc) $(ESQL_CFLAGS) $*.c $(ESQL_LIBS)
.ec.exe:
	esql $(ESQL_CFLAGS) $*.ec
	del $*.c $*.c_ $*.lnk $*.map $*.obj
	if exist $*.exe.manifest mt.exe -manifest $*.exe.manifest -outputresource:$*.exe;1

# targets
PROG01 = blobload.exe
PROG02 = bycmpr.exe
PROG03 = bycopy.exe
PROG04 = byfill.exe
PROG05 = byleng.exe
PROG06 = collect.exe
PROG07 = decadd.exe
PROG08 = deccmp.exe
PROG09 = deccopy.exe
PROG10 = deccvasc.exe
PROG11 = deccvdbl.exe
PROG12 = deccvint.exe
PROG13 = deccvlong.exe
PROG14 = decdiv.exe
PROG15 = dececvt.exe
PROG16 = decfcvt.exe
PROG17 = decmul.exe
PROG18 = decround.exe
PROG19 = decsub.exe
PROG20 = dectoasc.exe
PROG21 = dectodbl.exe
PROG22 = dectoint.exe
PROG23 = dectolong.exe
PROG24 = dectrunc.exe
PROG25 = demo1.exe
PROG26 = demo2.exe
PROG27 = demo3.exe
PROG28 = demo4.exe
PROG29 = dispcat_pic.exe
PROG30 = dtaddinv.exe
PROG31 = dtcurrent.exe
PROG32 = dtcvasc.exe
PROG33 = dtcvfmtasc.exe
PROG34 = dtextend.exe
PROG35 = dtsub.exe
PROG36 = dtsubinv.exe
PROG37 = dttoasc.exe
PROG38 = dttofmtasc.exe
PROG39 = dyn_sql.exe
PROG40 = getcd_me.exe
PROG41 = getcd_nf.exe
PROG42 = getcd_of.exe
PROG43 = getdiag.exe
PROG44 = incvasc.exe
PROG45 = incvfmtasc.exe
PROG46 = int8add.exe
PROG47 = int8cvasc.exe
PROG48 = int8cvdec.exe
PROG49 = int8div.exe
PROG50 = int8sub.exe
PROG51 = int8toasc.exe
PROG52 = int8todec.exe
PROG53 = intoasc.exe
PROG54 = intofmtasc.exe
PROG55 = invdivdbl.exe
PROG56 = invdivinv.exe
PROG57 = invextend.exe
PROG58 = invmuldbl.exe
PROG59 = ldchar.exe
PROG60 = lvarptr.exe
PROG61 = pamdemo.exe
PROG62 = rdayofweek.exe
PROG63 = rdefmtdate.exe
PROG64 = rdownshift.exe
PROG65 = rfmtdate.exe
PROG66 = rfmtdec.exe
PROG67 = rfmtdouble.exe
PROG68 = rfmtlong.exe
PROG69 = rgetlmsg.exe
PROG70 = rgetmsg.exe
PROG71 = risnull.exe
PROG72 = rjulmdy.exe
PROG73 = rleapyear.exe
PROG74 = rmdyjul.exe
PROG75 = rsetnull.exe
PROG76 = rstod.exe
PROG77 = rstoi.exe
PROG78 = rstol.exe
PROG79 = rstrdate.exe
PROG80 = rtoday.exe
PROG81 = rtypalign.exe
PROG82 = rtypmsize.exe
PROG83 = rtypname.exe
PROG84 = rtypwidth.exe
PROG85 = rupshift.exe
PROG86 = sqgetdbs.exe
PROG87 = stcat.exe
PROG88 = stchar.exe
PROG89 = stcmpr.exe
PROG90 = stcopy.exe
PROG91 = stleng.exe
PROG92 = timeout.exe
PROG93 = unload.exe
PROG94 = updcd_me.exe
PROG95 = updcd_nf.exe
PROG96 = updcd_of.exe
PROG97 = varchar.exe
PROG98 = create_clob.exe
PROG99 = get_lo_info.exe
PROG100 = upd_lo_descr.exe

TARGET    = $(PROG01) $(PROG02) $(PROG03) $(PROG04) $(PROG05) \
            $(PROG06) $(PROG07) $(PROG08) $(PROG09) $(PROG10) \
            $(PROG11) $(PROG12) $(PROG13) $(PROG14) $(PROG15) \
            $(PROG16) $(PROG17) $(PROG18) $(PROG19) $(PROG20) \
            $(PROG21) $(PROG22) $(PROG23) $(PROG24) $(PROG25) \
            $(PROG26) $(PROG27) $(PROG28) $(PROG29) $(PROG30) \
            $(PROG31) $(PROG32) $(PROG33) $(PROG34) $(PROG35) \
            $(PROG36) $(PROG37) $(PROG38) $(PROG39) $(PROG40) \
            $(PROG41) $(PROG42) $(PROG43) $(PROG44) $(PROG45) \
            $(PROG46) $(PROG47) $(PROG48) $(PROG49) $(PROG50) \
            $(PROG51) $(PROG52) $(PROG53) $(PROG54) $(PROG55) \
            $(PROG56) $(PROG57) $(PROG58) $(PROG59) $(PROG60) \
            $(PROG61) $(PROG62) $(PROG63) $(PROG64) $(PROG65) \
            $(PROG66) $(PROG67) $(PROG68) $(PROG69) $(PROG70) \
            $(PROG71) $(PROG72) $(PROG73) $(PROG74) $(PROG75) \
            $(PROG76) $(PROG77) $(PROG78) $(PROG79) $(PROG80) \
            $(PROG81) $(PROG82) $(PROG83) $(PROG84) $(PROG85) \
            $(PROG86) $(PROG87) $(PROG88) $(PROG89) $(PROG90) \
            $(PROG91) $(PROG92) $(PROG93) $(PROG94) $(PROG95) \
            $(PROG96) $(PROG97) $(PROG98) $(PROG99) $(PROG100)

all: $(TARGET)


