X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Flib%2Fgscprts%2FMakefile;h=69f44d08c1a2e6b3541c924927f3ce50e9ea3e07;hb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;hp=0413ec66c03e6773d0592ee9adecbf31d6596afd;hpb=93d248304a68de7a8f9daf4aa74f9ee4cd27410c;p=com%2Fgs-lite.git diff --git a/src/lib/gscprts/Makefile b/src/lib/gscprts/Makefile index 0413ec6..69f44d0 100644 --- a/src/lib/gscprts/Makefile +++ b/src/lib/gscprts/Makefile @@ -1,51 +1,51 @@ -# ------------------------------------------------ -# Copyright 2014 AT&T Intellectual Property -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ------------------------------------------- - -CC=gcc -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include -CXX=g++ -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include - -SOURCE_C = rts_main.c rts_env.c rts_csv.c rts_gdat.c -SOURCE_CC = rts_csv2.cc -SOURCE = $(SOURCE_C) $(SOURCE_CC) - - -OBJECTS = $(SOURCE_C:.c=.o) $(SOURCE_CC:.cc=.o) - - -all: libgscprts.a - -INCDIR=../../../include -LFTA_DIR=$(INCDIR/lfta) - -libgscprts.a: $(OBJECTS) Makefile - cd local_datasource; make - ar rc libgscprts.a $(OBJECTS) local_datasource/*.o - -rts_main.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) - -rts_env.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) - -rts_csv.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) - -rts_csv2.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) - -rts_gdat.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) - -install: all - cp libgscprts.a ../../../lib/ ; ranlib ../../../lib/libgscprts.a - -clean: - cd local_datasource; make clean - rm -f *.o *.a core +# ------------------------------------------------ +# Copyright 2014 AT&T Intellectual Property +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ------------------------------------------- + +CC=gcc -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include +CXX=g++ -g -O3 -msse4.2 -fexpensive-optimizations -I libdag/include -I ../../../include/lfta/ -I ../../../include/ -I ./include/ -I ../gscphost/include + +SOURCE_C = rts_main.c rts_env.c rts_csv.c rts_gdat.c +SOURCE_CC = rts_csv2.cc +SOURCE = $(SOURCE_C) $(SOURCE_CC) + + +OBJECTS = $(SOURCE_C:.c=.o) $(SOURCE_CC:.cc=.o) + + +all: libgscprts.a + +INCDIR=../../../include +LFTA_DIR=$(INCDIR/lfta) + +libgscprts.a: $(OBJECTS) Makefile + cd local_datasource; make + ar rc libgscprts.a $(OBJECTS) local_datasource/*.o + +rts_main.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) + +rts_env.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) + +rts_csv.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) + +rts_csv2.cc : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) + +rts_gdat.c : $(INCDIR/gsconfig.h) $(INCDIR/gstypes.h) $(INCDIR/lapp.h) $(INCDIR/fta.h) $(LFTA_DIR/rts.h) $(INCDIR/packet.h) + +install: all + cp libgscprts.a ../../../lib/ ; ranlib ../../../lib/libgscprts.a + +clean: + cd local_datasource; make clean + rm -f *.o *.a core