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 CC=gcc -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include
\r
17 CXX=g++ -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include
\r
19 SOURCE_C = rts_main.c rts_env.c rts_csv.c rts_gdat.c
\r
20 SOURCE_CC = rts_csv2.cc
\r
21 SOURCE = $(SOURCE_C) $(SOURCE_CC)
\r
24 OBJECTS = $(SOURCE_C:.c=.o) $(SOURCE_CC:.cc=.o)
\r
29 INCDIR=../../../include
\r
30 LFTA_DIR=$(INCDIR/lfta)
\r
32 libgscprts.a: $(OBJECTS) Makefile
\r
33 cd local_datasource; make
\r
34 ar rc libgscprts.a $(OBJECTS) local_datasource/*.o
\r
36 rts_main.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h)
\r
38 rts_env.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h)
\r
40 rts_csv.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)
\r
42 rts_csv2.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)
\r
44 rts_gdat.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h)
\r
47 cp libgscprts.a ../../../lib/ ; ranlib ../../../lib/libgscprts.a
\r
50 cd local_datasource; make clean
\r