Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for libplaton/Rules.make.in between version 1.7 and 1.8

version 1.7, 2002/10/21 13:40:16 version 1.8, 2002/12/03 16:56:36
Line 9 
Line 9 
 # PARTICULAR PURPOSE.  # PARTICULAR PURPOSE.
   
 # Make rules for libplaton library.  # Make rules for libplaton library.
 # $Platon: libplaton/Rules.make.in,v 1.6 2002/10/07 15:56:27 rajo Exp $  # $Platon: libplaton/Rules.make.in,v 1.7 2002/10/21 13:40:16 nepto Exp $
   
 PACKAGE = @PACKAGE@  PACKAGE = @PACKAGE@
 VERSION = @VERSION@  VERSION = @VERSION@
   
 CVSTAG  = $(PACKAGE)-$(subst .,_,$(VERSION))  CVSTAG  = $(PACKAGE)-$(subst .,_,$(VERSION))
   
   unexport SUBDIRS
   unexport SOURCES
   unexport HEADERS
   unexport OBJECTS
   unexport MAIN_OBJECT
   unexport SUBDIR_OBJECTS
   
 # Default settings {{{  # Default settings {{{
 LIBSTATIC          = $(PACKAGE).a  LIBSTATIC          = $(PACKAGE).a
 LIBDYNAMIC         = $(PACKAGE).so  LIBDYNAMIC         = $(PACKAGE).so
Line 75  CFLAGS   = -O2 -Wall -Wno-shadow -pedant
Line 82  CFLAGS   = -O2 -Wall -Wno-shadow -pedant
 CPPFLAGS = @CPPFLAGS@  CPPFLAGS = @CPPFLAGS@
 LDFLAGS  = @LDFLAGS@  LDFLAGS  = @LDFLAGS@
 DEFS     = @DEFS@  DEFS     = @DEFS@
 INCLUDES = -I. -I$(srcdir) -I$(top_builddir)  INCLUDES = -I. -I$(top_srcdir) -I$(top_builddir)
   
   
 COMPILE      = $(CC)  $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)  COMPILE      = $(CC)  $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
Line 139  $(top_srcdir)/config.h.in: $(top_srcdir)
Line 146  $(top_srcdir)/config.h.in: $(top_srcdir)
   
 # Makefiles }}}  # Makefiles }}}
   
 all-subdirs:  #
         @here=`pwd`; \  # A rule to do nothing
         if [ "X" != "X$(SUBDIRS)" ]; then \  #
                 for i in ""$(SUBDIRS); do \  dummy:
                         echo "Making all in '$$i'" && cd $$i; \  
                         make; \  #
                         cd $$here; \  # A rule to make subdirectories
                 done; \  #
         fi  subdir-list = $(sort $(patsubst %,_subdir_%,$(SUBDIRS)))
   all-subdirs: dummy $(subdir-list)
   
   ifdef SUBDIRS
   $(subdir-list) : dummy
               $(MAKE) -C $(patsubst _subdir_%,%,$@)
   endif
   
 .SUFFIXES:  .SUFFIXES:
   
Line 162  $(LIBSTATIC):    $(OBJECTS)
Line 174  $(LIBSTATIC):    $(OBJECTS)
 $(LIBDYNAMICV): $(OBJECTS)  $(LIBDYNAMICV): $(OBJECTS)
         $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS)          $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS)
   
 %.o: %.c $(CONFIG_HEADER)  %.o: $(srcdir)/%.c $(CONFIG_HEADER)
         @echo '$(COMPILE) -c $<'; \          @echo '$(COMPILE) -c $<'; \
         $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<          $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<
         @-cp .deps/$(*F).pp .deps/$(*F).P; \          @-cp .deps/$(*F).pp .deps/$(*F).P; \
Line 171  $(LIBDYNAMICV):    $(OBJECTS)
Line 183  $(LIBDYNAMICV):    $(OBJECTS)
             >> .deps/$(*F).P; \              >> .deps/$(*F).P; \
         rm .deps/$(*F).pp          rm .deps/$(*F).pp
   
 %.o: %.cpp $(CONFIG_HEADER)  %.o: $(srcdir)/%.cpp $(CONFIG_HEADER)
         @echo '$(COMPILE_CXX) -c $<'; \          @echo '$(COMPILE_CXX) -c $<'; \
         $(COMPILE_CXX) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<          $(COMPILE_CXX) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<
         @-cp .deps/$(*F).pp .deps/$(*F).P; \          @-cp .deps/$(*F).pp .deps/$(*F).P; \
Line 180  $(LIBDYNAMICV):    $(OBJECTS)
Line 192  $(LIBDYNAMICV):    $(OBJECTS)
             >> .deps/$(*F).P; \              >> .deps/$(*F).P; \
         rm .deps/$(*F).pp          rm .deps/$(*F).pp
   
   SUBDIR_OBJECTS = $(sort $(patsubst %,%.o,$(SUBDIRS)))
   $(MAIN_OBJECT): $(OBJECTS) $(SUBDIR_OBJECTS)
           $(LD) -r -o $@ $(OBJECTS) $(SUBDIR_OBJECTS)
   
 test: $(top_builddir)/config.h  test: $(top_builddir)/config.h
         $(CC) $(INCLUDES) -Wall -g -ggdb -DSELF_CFG -DDEBUG=1 -o test-$(PACKAGE) $(SOURCES)          $(CC) $(INCLUDES) -Wall -g -ggdb -DSELF_CFG -DDEBUG=1 -o test-$(PACKAGE) $(SOURCES)
Line 197  documentation:
Line 212  documentation:
 clean: clean-subdirs clean-hdr clean-tags clean-generic  clean: clean-subdirs clean-hdr clean-tags clean-generic
         -rm -rf  *.o core *.core .deps lib*          -rm -rf  *.o core *.core .deps lib*
   
 clean-subdirs:  subdir-list-clean = $(sort $(patsubst %,_subdir_clean_%,$(SUBDIRS)))
         @here=`pwd`; \  clean-subdirs: dummy $(subdir-list-clean)
         if [ "X" != "X$(SUBDIRS)" ]; then \  
                 for i in ""$(SUBDIRS); do \  ifdef SUBDIRS
                         echo "Making all in '$$i'" && cd $$i; \  $(subdir-list-clean) : dummy
                         make clean; \              $(MAKE) -C $(patsubst _subdir_clean_%,%,$@) clean
                         cd $$here; \  endif
                 done; \  
         fi  
   
 clean-hdr:  clean-hdr:
         -rm -f $(top_builddir)/config.h          -rm -f $(top_builddir)/config.h

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top