a7d9bec8164169a5475d1052b9b580b45af3b818
[com/gs-lite.git] / src / lib / gscphftaaux / 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 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
20 \r
21 INCDIR=../../../include\r
22 HFTA_DIR=$(INCDIR/hfta)\r
23 LFTA_DIR=$(INCDIR/lfta)\r
24 \r
25 all: libgscphftaaux.a\r
26 \r
27 install: all\r
28         cp libgscphftaaux.a ../../../lib ; ranlib ../../../lib/libgscphftaaux.a\r
29 \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
32 \r
33 hfta_runtime_library.o: hfta_runtime_library.cc\r
34 \r
35 hfta_runtime_library.cc : $(HFTA_DIR/host_tuple.h) $(INCDIR/fta.h)\r
36 \r
37 hfta_udaf.o: hfta_udaf.cc\r
38 \r
39 flip_udaf.o: flip_udaf.cc\r
40 \r
41 hfta_udaf.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(HFTA_DIR/hfta_udaf.h) $(LFTA_DIR/rts_udaf.h)\r
42 \r
43 Manku_HH.o: Manku_HH.cc\r
44         $(CXX) -c -o Manku_HH.o Manku_HH.cc\r
45 \r
46 SSstateful_count_distinct.o: SSstateful_count_distinct.cc\r
47         $(CXX) -c -o SSstateful_count_distinct.o SSstateful_count_distinct.cc\r
48 \r
49 \r
50 clean:\r
51         rm -f *.o *.a core\r
52 \r