# # Copyright (c) Members of the EGEE Collaboration. 2009-2010. # See http://www.eu-egee.org/partners/ for details on the copyright # holders. # # 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. # sd-cpp Makefile # # Note that changes to headers will not trigger re-compilation. -include ../config/make.cfg GRAMMAR_FILE = sd_grammar.g GRAMMAR_SRC = sd_parser.cpp sd_lexer.cpp GRAMMAR_HDR = sd_parser.hpp sd_lexer.hpp sdTokenTypes.hpp GRAMMAR_TXT = sdTokenTypes.txt SAGA_HDR = $(sort $(wildcard *.hpp) $(GRAMMAR_HDR)) SAGA_SRC = $(sort $(wildcard *.cpp) $(GRAMMAR_SRC)) SAGA_OBJ = $(SAGA_SRC:%.cpp=%.o) SAGA_ADAPTOR_OBJ = $(SAGA_OBJ) SAGA_ADAPTOR_TYPE = sd SAGA_ADAPTOR_NAME = glite_sd SAGA_ADAPTOR_INI = glite_sd_adaptor.ini SAGA_ADAPTOR_PACKAGES = sd -include $(SAGA_LOCATION)/share/saga/make/saga.adaptor.mk SAGA_ADAPTOR_REQUIREMENTS = openssl SAGA_CXXFLAGS += $(SAGA_LDAP_CPPFLAGS) -DLDAP_DEPRECATED SAGA_LDFLAGS += $(SAGA_LDAP_LDFLAGS) SAGA_CXXFLAGS += -I../external/ SAGA_LDFLAGS += -L../external/antlr/ -lsaga_antlr # needed? # ifeq "$(SAGA_OSTYPE)" "Darwin" # SAGA_LDFLAGS += -undefined dynamic_lookup # endif # # -DSIZE_T_DEFINED -DLDAP_DEPRECATED .PHONY: grammar grammar:: @$(ECHO) " re-building grammar" java -cp ../external/antlr/antlr.jar antlr.Tool $(GRAMMAR_FILE) .PHONY: grammar-clean grammar-clean:: @$(RM) $(GRAMMAR_SRC) $(GRAMMAR_HDR) $(GRAMMAR_TXT) $(GRAMMAR_OBJ)