Added protobuf support
[com/gs-lite.git] / src / lib / gscphftaaux / 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 CXX= g++ -O3  -fexpensive-optimizations -g -I ../gscpaux/ -I ../../../include  -I ../../../include/hfta -I ../../../include/lfta
17 CC= gcc  -fexpensive-optimizations -O3 -I ../../../include -I ../../../include/lfta 
18
19 INCDIR=../../../include
20 HFTA_DIR=$(INCDIR/hfta)
21 LFTA_DIR=$(INCDIR/lfta)
22
23 all: libgscphftaaux.a
24
25 install: all
26         cp libgscphftaaux.a ../../../lib ; ranlib ../../../lib/libgscphftaaux.a
27
28 libgscphftaaux.a:   SSstateful_count_distinct.o Manku_HH.o hfta_runtime_library.o  Makefile  hfta_udaf.o  
29         ar  rc libgscphftaaux.a  SSstateful_count_distinct.o Manku_HH.o  hfta_runtime_library.o   hfta_udaf.o  
30
31 hfta_runtime_library.o: hfta_runtime_library.cc
32
33 hfta_runtime_library.cc : $(HFTA_DIR/host_tuple.h) $(INCDIR/fta.h)
34
35 hfta_udaf.o: hfta_udaf.cc
36
37 hfta_udaf.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(HFTA_DIR/hfta_udaf.h) $(LFTA_DIR/rts_udaf.h)
38
39 Manku_HH.o: Manku_HH.cc
40         $(CXX) -c -o Manku_HH.o Manku_HH.cc
41
42 SSstateful_count_distinct.o: SSstateful_count_distinct.cc
43         $(CXX) -c -o SSstateful_count_distinct.o SSstateful_count_distinct.cc
44
45
46 clean:
47         rm -f *.o *.a core
48