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