| # |
| # 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-1.3 |
| LOCAL_SRC_DIR = @SRC_DIR@/apache-1.3 |
| include @TGT_DIR@/Makedefs |
| |
| SOURCE = mod_webapp.c |
| OBJECT = mod_webapp.o |
| |
| .PHONY: build clean |
| |
| build: $(MODFILE) |
| |
| clean: |
| rm -f $(MODFILE) |
| rm -f $(OBJECT) |
| @if test -h $(SOURCE) ; then \ |
| echo rm -f $(SOURCE) ; \ |
| rm -f $(SOURCE) ; \ |
| fi |
| |
| $(SOURCE): $(LOCAL_SRC_DIR)/$(SOURCE) |
| ln -s $< $@ |
| |
| $(MODFILE): $(SOURCE) |
| $(APXS) -c -o $@ \ |
| $(INCLUDES) $(LOCAL_INCLUDES) \ |
| -Wc,"$(CPPFLAGS) $(CFLAGS)" \ |
| -Wl,"$(LDFLAGS) $(LIBS)" \ |
| -L$(LIB_DIR) -l$(APR_LIB) \ |
| $(OBJ_DIR)/*.o $< |
| |
| # +++ EXPERIMENTAL +++ LIBTOOL COMPILE, APXS LINK +++ |
| # SOURCE = mod_webapp.c |
| # OBJECT = mod_webapp.lo |
| # |
| # $(OBJECT): $(LOCAL_SRC_DIR)/$(SOURCE) |
| # $(LIBTOOL) --mode=compile \ |
| # $(CC) -c $< -o $@ \ |
| # $(INCLUDES) $(EXTRA_INCLUDES) \ |
| # $(CPPFLAGS) $(EXTRA_CPPFLAGS) \ |
| # $(CFLAGS) $(EXTRA_CFLAGS) |
| # |
| # $(MODFILE): $(OBJECT) |
| # $(APXS) -c -o $@ -L$(OBJ_DIR) -l$(APR_LIB) $< $(OBJ_DIR)/*.o |