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 ifeq ($(BUILDTYPE
), MMDB
)
25 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsqlstorage
-lcsqlbase
-lcsqlsqllog
-lcsqlnw
-lcsqlsqlnw
27 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsqlsql
-lcsqlstorage
-lcsqlbase
-lcsqlsqllog
-lcsqlnw
-lcacheload
-lcsqlsqlnw
-lcsqlgw
-lcsqlodbcadapter
41 ifeq ($(PlatForm
), supported
)
45 echo
"CSQL is not supported on $(OSNAME) platform"
48 test001
: paratest1.c common.h
49 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
50 test001n
: paratest1.c common.h
51 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
52 test002
:paratest2.c common.h
53 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
54 test002n
: paratest2.c common.h
55 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
56 test003
:paratest3.c common.h
57 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
58 test003n
: paratest3.c common.h
59 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
60 test004
:paratest4.c common.h
61 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
62 test004n
: paratest4.c common.h
63 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
64 test005
:paratest5.c common.h
65 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
66 test005n
: paratest5.c common.h
67 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
68 test006
:paratest6.c common.h
69 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
70 test006n
: paratest6.c common.h
71 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
72 test007
:paratest7date.c common.h
73 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
74 test007n
: paratest7date.c common.h
75 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
76 test008
:paratest8now.c common.h
77 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
78 test008n
: paratest8now.c common.h
79 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
80 test100
:paratest100.c common.h
81 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
82 test100n
: paratest100.c common.h
83 $(CPlus
) -DNETWORK
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)