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
7 # http://www.apache.org/licenses/LICENSE-2.0
\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
16 CXX= g++ -O3 -fexpensive-optimizations -g -I ../gscpaux/ -I ../../../include -I ../../../include/hfta -I ../../../include/lfta
\r
17 CC= gcc -fexpensive-optimizations -O3 -I ../../../include -I ../../../include/lfta
\r
18 #CXX= g++ -fexpensive-optimizations -g -I ../gscpaux/ -I ../../../include -I ../../../include/hfta -I ../../../include/lfta
\r
19 #CC= gcc -fexpensive-optimizations -I ../../../include -I ../../../include/lfta
\r
21 INCDIR=../../../include
\r
22 HFTA_DIR=$(INCDIR/hfta)
\r
23 LFTA_DIR=$(INCDIR/lfta)
\r
25 all: libgscphftaaux.a
\r
28 cp libgscphftaaux.a ../../../lib ; ranlib ../../../lib/libgscphftaaux.a
\r
30 libgscphftaaux.a: SSstateful_count_distinct.o Manku_HH.o hfta_runtime_library.o Makefile hfta_udaf.o flip_udaf.o
\r
31 ar rc libgscphftaaux.a SSstateful_count_distinct.o Manku_HH.o hfta_runtime_library.o hfta_udaf.o flip_udaf.o
\r
33 hfta_runtime_library.o: hfta_runtime_library.cc
\r
35 hfta_runtime_library.cc : $(HFTA_DIR/host_tuple.h) $(INCDIR/fta.h)
\r
37 hfta_udaf.o: hfta_udaf.cc
\r
39 flip_udaf.o: flip_udaf.cc
\r
41 hfta_udaf.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(HFTA_DIR/hfta_udaf.h) $(LFTA_DIR/rts_udaf.h)
\r
43 Manku_HH.o: Manku_HH.cc
\r
44 $(CXX) -c -o Manku_HH.o Manku_HH.cc
\r
46 SSstateful_count_distinct.o: SSstateful_count_distinct.cc
\r
47 $(CXX) -c -o SSstateful_count_distinct.o SSstateful_count_distinct.cc
\r