blob: 16fdc2bf1650afda284d7dc0364d452cd002c597 [file] [log] [blame]
#
# 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 <mailto:pier@betaversion.org>
# @version $Id$
LOCAL_TGT_DIR = @TGT_DIR@/apache-2.0
LOCAL_SRC_DIR = @SRC_DIR@/apache-2.0
include @TGT_DIR@/Makedefs
SOURCE = mod_webapp.c
OBJECT = mod_webapp.lo
LIBDIR = .libs
LIBFIL = libwebapp
LIBEXT = .la
.PHONY: build clean
build: $(LIBFIL)$(LIBEXT)
$(INSTALL) \
$(LOCAL_TGT_DIR)/$(LIBDIR)/$(LIBFIL).so \
$(LOCAL_TGT_DIR)/$(MODFILE)
clean:
rm -f $(OBJECT)
rm -f mod_webapp.o
rm -f mod_webapp.slo
@if test -h $(SOURCE) ; then \
echo rm -f $(SOURCE) ; \
rm -f $(SOURCE) ; \
fi
rm -f $(LIBFIL).*
rm -rf $(LIBDIR)
$(SOURCE): $(LOCAL_SRC_DIR)/$(SOURCE)
ln -s "$<" "$@"
$(LIBFIL)$(LIBEXT): $(SOURCE)
$(APXS) -c -o $@ \
$(INCLUDES) \
$(OBJ_DIR)/*.lo $<