a0ed0f10738628039b2e3acd152302573e6745b9
[com/gs-lite.git] / src / lib / gscpaux / 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 CPPFLAGS = -DNDEBUG -DSTAND_ALONE -I. -I../../../include/\r
17 CC = gcc  -O4 -g\r
18 CPP = g++ -O4 -g\r
19 \r
20 all: libgscpaux.a\r
21 \r
22 install : all\r
23         cp libgscpaux.a ../../../lib/\r
24 \r
25 libgscpaux.a :  gshub.o simple_http.o json.o block_allocator.o\r
26                 ar cr $@ $?\r
27                 ( ranlib $@ ) 2>/dev/null || true\r
28         cp libgscpaux.a ../../../lib/\r
29 \r
30 INCDIR=../../../include\r
31 LFTA_DIR=$(INCDIR/lfta)\r
32 HFTA_DIR=$(INCDIR/hfta)\r
33 \r
34 \r
35 clean: \r
36         rm -f */*.o */*/*.o *.o libgscpaux.a\r