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
34 ifeq ($(PlatForm
), supported
)
38 echo
"CSQL is not supported on $(OSNAME) platform"
41 test001
:paratest1.c common.h
42 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
43 paratest1na
:paratest1.c common.h
44 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
45 test002
:paratest2.c common.h
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
47 paratest2na
:paratest2.c common.h
48 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
49 test003
:paratest3.c common.h
50 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
51 paratest3na
:paratest3.c common.h
52 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
53 test004
:paratest4.c common.h
54 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
55 paratest4na
:paratest4.c common.h
56 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
57 test005
:paratest5.c common.h
58 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
59 paratest5na
:paratest5.c common.h
60 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
61 test006
:paratest6.c common.h
62 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
63 paratest6na
:paratest6.c common.h
64 $(CPlus
) -DNETWORKADAPTER
$(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)