2 OSNAME
= $(shell uname
-s
)
5 ifeq ($(OSNAME
), SunOS
)
7 CPlusFlags
= -O2
-w
-mt
-xarch
=v8
8 SYSLIBS
=-ldl
-lnsl
-lsocket
-lposix4
10 ifeq ($(OSNAME
), Linux
)
13 SYSLIBS
= -rdynamic
-lrt
-lpthread
-lcrypt
17 echo
"CSQL is not supported on $(OSNAME) platform"
21 INCL
= -I
$(CSQL_INSTALL_ROOT
)/include
22 LIBS
= -L
$(CSQL_INSTALL_ROOT
)/lib
-lcsql
33 ifeq ($(PlatForm
), supported
)
38 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
40 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
41 test003
: longlongtest.c
42 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
44 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)
45 test005
: byteinttest.c
46 $(CPlus
) $(CPlusFlags
) -o
$@
$< $(INCL
) $(LIBS
) $(SYSLIBS
)