1 OSNAME
= $(shell uname
-s
)
4 ifeq ($(OSNAME
), SunOS
)
7 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
9 ifeq ($(OSNAME
), Linux
)
12 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
16 echo
"CSQL is not supported on $(OSNAME) platform"
20 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include
22 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlodbc
26 ifeq ($(PlatForm
), supported
)
31 $(CPlus
) $(CPlusFlags
) $(INCL
) -c
-o
$@
$<
33 odbcexample
:odbcexample.o
34 $(CPlus
) $(CPlusFlags
) $(INCL
) -o
$@
$< $(LIBS
) $(SYSLIBS
)