Added quantiling UDAFs
[com/gs-lite.git] / src / lib / gscprts / Makefile
1 # ------------------------------------------------\r
2 #   Copyright 2014 AT&T Intellectual Property\r
3 #   Licensed under the Apache License, Version 2.0 (the "License");\r
4 #   you may not use this file except in compliance with the License.\r
5 #   You may obtain a copy of the License at\r
6 #\r
7 #     http://www.apache.org/licenses/LICENSE-2.0\r
8 #\r
9 #   Unless required by applicable law or agreed to in writing, software\r
10 #   distributed under the License is distributed on an "AS IS" BASIS,\r
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12 #   See the License for the specific language governing permissions and\r
13 #   limitations under the License.\r
14 # -------------------------------------------\r
15 \r
16 CC=gcc  -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include\r
17 CXX=g++  -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include\r
18 \r
19 SOURCE_C =   rts_main.c rts_env.c rts_csv.c rts_gdat.c\r
20 SOURCE_CC =   rts_csv2.cc\r
21 SOURCE =   $(SOURCE_C) $(SOURCE_CC) \r
22 \r
23 \r
24 OBJECTS = $(SOURCE_C:.c=.o) $(SOURCE_CC:.cc=.o)\r
25 \r
26 \r
27 all: libgscprts.a \r
28 \r
29 INCDIR=../../../include\r
30 LFTA_DIR=$(INCDIR/lfta)\r
31 \r
32 libgscprts.a: $(OBJECTS) Makefile \r
33         cd local_datasource; make\r
34         ar  rc libgscprts.a $(OBJECTS) local_datasource/*.o \r
35 \r
36 rts_main.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) \r
37 \r
38 rts_env.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h)\r
39 \r
40 rts_csv.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)\r
41 \r
42 rts_csv2.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)\r
43 \r
44 rts_gdat.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)\r
45 \r
46 install: all\r
47         cp libgscprts.a  ../../../lib/ ; ranlib ../../../lib/libgscprts.a\r
48 \r
49 clean:\r
50         cd local_datasource; make clean\r
51         rm -f *.o *.a core\r