1 OSNAME
= $(shell uname
-s
)
3 ifeq ($(OSNAME
), SunOS
)
5 CPlusFlags
= -O2
-w
$(COMPILER_FLAG
)
6 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
9 ifeq ($(OSNAME
), Linux
)
12 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
15 ifeq ($(OSNAME
), FreeBSD
)
18 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
23 INCL
= -I
$(CSQL_INSTALL_ROOT
)/install/include -I..
/..
/..
/include
24 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlgw
-lcsqlnw
-lcsqlodbcadapter
-lcsqlsqlnw
-lcacheload
-lcsqlstorage
-lcsqlbase
-lcsqlsql
-lcsqlsqllog
28 selecttest1 selecttest2 selecttest3 selecttest4 selecttest5 selecttest6 \
29 selecttest7 selecttest8 singleconngateway
31 ifeq ($(PlatForm
), supported
)
35 echo
"CSQL is not supported on $(OSNAME) platform"
38 selecttest1
: selecttest1.c common.h
39 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
40 selecttest2
: selecttest2.c common.h
41 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
42 selecttest3
: selecttest3.c common.h
43 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
44 selecttest4
: selecttest4.c common.h
45 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
46 selecttest5
: selecttest5.c common.h
47 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
48 selecttest6
: selecttest6.c common.h
49 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
50 selecttest7
: selecttest7.c common.h
51 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
52 selecttest8
: selecttest8.c common.h
53 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
54 singleconngateway
:singleconngateway.c common.h
55 $(CPlus
) -DGATEWAY
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)