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