### # Copyright (C) 2005 David Burken, Inc. All rights reserved. # # License: LGPL # # See LICENSE.txt file in the top level directory for more details. # # $Id$ ### include ../make.opt CPPSRCS=$(wildcard *.cpp) CPPOBJS=$(patsubst %.cpp,%.o,$(CPPSRCS)) OBJS=$(CPPOBJS) DEPENDS_FILES=$(wildcard *.d) INCLUDES=${OSSIM_PLUGINS_INCLUDES} $(OSSIM_INCLUDES) $(GDAL_INCLUDES) all: $(OBJS) $(RM) ../lib/$(GDAL_PLUGIN_LIB) $(LINK_SHARED) *.o $(LINK_GDAL) $(OSSIM_LIBS) -o ../lib/$(GDAL_PLUGIN_LIB) clean: $(RM) *.o *.d *~ make.out $(RM) ../lib/$(GDAL_PLUGIN_LIB) clean_depends: ($(RM) *.d); depends: clean_depends $(CPPSRCS:.cpp=.d) .cpp.o: $(CXX) $(CXXFLAGS) $(PIC) $(CDEBUGFLAGS) $(INCLUDES) -c $< -o $*.o %.d: %.cpp $(SHELL) -ec '$(CXX) -MM $(CXXFLAGS) $(CDEBUGFLAGS) $(INCLUDES) $< >> $@;' ifneq ( $(DEPENDS_FILES),) -include $(DEPENDS_FILES) endif