# # Copyright 1999-2004 The Apache Software Foundation # # 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. # # @author Pier Fumagalli # @version $Id$ LOCAL_TGT_DIR = @TGT_DIR@/lib LOCAL_SRC_DIR = @SRC_DIR@/lib include @TGT_DIR@/Makedefs OBJS = wa_main.lo \ wa_config.lo \ wa_request.lo \ pr_info.lo \ pr_warp.lo \ pr_warp_packet.lo \ pr_warp_network.lo \ pr_warp_config.lo \ pr_warp_socketpool.lo DEFH = pr_warp_defs.h .PHONY: build clean build: $(DEFH) $(OBJS) clean: @for FILE in $(OBJS) ; do \ FILE="`basename $$FILE .lo`" ; \ echo rm -f $$FILE.lo ; \ rm -f $$FILE.lo ; \ echo rm -f $$FILE.o ; \ rm -f $$FILE.o ; \ done rm -f $(DEFH) rm -rf .libs $(DEFH): $(SRC_DIR)/java/org/apache/catalina/connector/warp/Constants.java cat "$<" | \ grep 'VERS_' | \ sed 's/.*public static final int/#define/g' | \ sed 'y/=;/ /' > $@ cat "$<" | \ grep 'TYPE_' | \ sed 's/.*public static final int/#define/g' | \ sed 'y/=;/ /' > $@