Changeset 299


Ignore:
Timestamp:
Jan 2, 2003, 8:01:39 PM (18 years ago)
Author:
pooh
Message:
  • First stage of CVS tree reorganization completed.
Location:
to-imperative/trunk
Files:
19 added
8 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/Makefile

    r22 r299  
    1 override TOPDIR:=.
    2 -include subdirs.mk
     1SUBDIRS = libstdc++-stub compiler runtime samples
     2INSTALL_SUBDIRS = $(SUBDIRS)
     3
    34include rules.mk
     5include version.mk
     6
     7DISTFILES = Makefile config.functions config.mk rules.mk config.guess
     8DISTFILES += version.mk spec.in
     9DISTFILES += ChangeLog createlog
    410
    511all::
    612        @echo All done.
    713
     14dist::
     15        rm -rf $(ARCHIVEDIR)
     16        mkdir $(ARCHIVEDIR)
     17        cp -dpPr `cat $(DISTLIST)` $(ARCHIVEDIR)/
     18        tar cvzf $(ARCHIVENAME) $(ARCHIVEDIR)/*
     19        rm -rf $(ARCHIVEDIR)
     20
     21snapshot::
     22        rm -rf $(SNAPSHOTDIR)
     23        mkdir $(SNAPSHOTDIR)
     24        cp -dpPr `cat $(DISTLIST)` $(SNAPSHOTDIR)/
     25        tar cvzf $(SNAPSHOTNAME) $(SNAPSHOTDIR)/*
     26        rm -rf $(SNAPSHOTDIR)
     27
     28$(PKGNAME).spec: spec.in
     29        NAME="$(PKGNAME)" \
     30        VERSION="$(PKGVERSION)" \
     31        RELEASE="$(PKGRELEASE)" \
     32        ARCHIVEDIR="$(ARCHIVEDIR)" \
     33        . $< >$@
     34
     35$(PKGNAME)-snapshot.spec: spec.in
     36        NAME="$(PKGNAME)-snapshot" \
     37        VERSION="$(SNAPSHOTDATE)" \
     38        RELEASE="$(PKGRELEASE)" \
     39        ARCHIVEDIR="$(SNAPSHOTDIR)" \
     40        . $< >$@
     41
     42.rpmmacros:
     43        { \
     44        echo "%_fixperms chmod -R  a+rX,u+w,g-w,o-w"; \
     45        echo "%_topdir `pwd`"; \
     46        echo "%_rpmdir `pwd`"; \
     47        echo "%_srcrpmdir `pwd`"; \
     48        echo "%_builddir `pwd`"; \
     49        echo "%_sourcedir `pwd`"; \
     50        echo "%_specdir `pwd`"; \
     51        echo "%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm"; \
     52        } >$@
     53
     54rpm: $(PKGNAME).spec .rpmmacros all dist
     55        HOME=`pwd` rpm -ba $<
     56        rm -rf $(BUILDROOT)
     57
     58snaprpm: $(PKGNAME)-snapshot.spec .rpmmacros all snapshot
     59        HOME=`pwd` rpm -ba $<
     60        rm -rf $(BUILDROOT)
     61
     62install:: all
     63        mkdir -p -m 0755 $(INSTALL_DIR)
     64
    865clean::
    9 
    10 distclean::
    11         rm -f config.mk subdirs.mk *.tar.gz
    12 
    13 
     66        rm -f .rpmrc *.spec *.list
     67#       rm -f *.tar.gz *.rpm
  • to-imperative/trunk/compiler/Makefile

    r87 r299  
     1TOPDIR = ..
    12include $(TOPDIR)/rules.mk
    23
     
    1213  rfp_err.o \
    1314  rfp_src.o \
    14   rfp_asail.o
     15  rfp_asail.o \
     16  rfp_as2as.o \
     17  rfp_check.o \
     18  rfp_format.o \
     19  rfp_helper.o \
     20  rfp_list.o
    1521
    1622SYNHL_OBJECTS = \
     
    6470
    6571clean::
    66         rm -f $(PROGRAMS) *.o
     72        rm -f $(PROGRAMS) *.o *.s
    6773
  • to-imperative/trunk/rules.mk

    r129 r299  
    55-include $(TOPDIR)/config.mk
    66
    7 ifneq "$(NODEPS)" "yes"
    8 DEPFILES=
    9 DEPFILES+=$(patsubst %.c,%.dep,$(wildcard *.c))
    10 DEPFILES+=$(patsubst %.cc,%.dep,$(wildcard *.cc))
    11 endif
    12 
    137%.dep: %.c
    14         $(CC) $(CPPFLAGS) -M $< | \
     8        @echo Generating dependencies for $<
     9        @$(CC) $(CPPFLAGS) -M $< | \
    1510          sed 's/\($*\)\.o[ :]*/\1.o \1.dbg.o $@ : /g' > $@;
    1611
    1712%.dep: %.cc
    18         $(CXX) $(CPPFLAGS) -M $< | \
     13        @echo Generating dependencies for $<
     14        @$(CXX) $(CPPFLAGS) -M $< | \
    1915          sed 's/\($*\)\.o[ :]*/\1.o \1.dbg.o $@ : /g' > $@;
    2016
     
    3632DO_SUBDIRS=$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) \
    3733  TOPDIR=$(TOPDIR)/.. INSTALL_DIR=$(INSTALL_DIR) $@ \
    38   || exit 1; )
    39 DO_SUBDIRS_NODEPS=$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) \
    40   TOPDIR=$(TOPDIR)/.. CURRENTDIR=$(CURRENTDIR)/$(dir) \
    41   DISTNAME="$(DISTNAME)" \
    42   INSTALL_DIR=$(INSTALL_DIR) NODEPS=yes $@ \
     34  CURRENTDIR=$(CURRENTDIR)/$(dir) DISTNAME="$(DISTNAME)" \
    4335  || exit 1; )
    4436
     
    4739
    4840clean::
    49         $(DO_SUBDIRS_NODEPS)
     41        $(DO_SUBDIRS)
    5042        rm -f core
    5143
    5244distclean:: clean
    53         $(DO_SUBDIRS_NODEPS)
     45        $(DO_SUBDIRS)
    5446
    5547dist::
    5648        if [ -f "$(DISTLIST)" ]; then rm $(DISTLIST); fi
    57         $(DO_SUBDIRS_NODEPS)
     49        $(DO_SUBDIRS)
    5850        echo $(foreach file, $(DISTFILES), $(CURRENTDIR)/$(file)) \
    5951          >>$(TOPDIR)/$(DISTLIST)
     
    6153snapshot::
    6254        if [ -f "$(DISTLIST)" ]; then rm $(DISTLIST); fi
    63         $(DO_SUBDIRS_NODEPS)
     55        $(DO_SUBDIRS)
    6456        echo $(foreach file, $(DISTFILES), $(CURRENTDIR)/$(file)) \
    6557          >>$(TOPDIR)/$(DISTLIST)
     
    8173
    8274.PHONY: all check install uninstall clean dist snapshot distclean
    83 
    84 ifneq "$(DEPFILES)" ""
    85 -include $(DEPFILES)
    86 endif
  • to-imperative/trunk/runtime/pxx_common.cc

    r145 r299  
    4848};
    4949
    50 Init init;
     50Init init __attribute__ ((init_priority (101))) ;
    5151
    5252}
  • to-imperative/trunk/runtime/pxx_heap.cc

    r287 r299  
    2626  need_remap (_need_remap)
    2727{
     28printf("max_order = %u\n", max_order);
    2829  if (rounds[max_order] != max_size)
    2930    FATAL("heap size is not a power of 2");
  • to-imperative/trunk/runtime/rf_arg.hh

    r147 r299  
    2525
    2626#include "rf_expr.hh"
     27#include "rf_stack.hh"
    2728
    2829namespace rfrt
  • to-imperative/trunk/runtime/rf_common.cc

    r147 r299  
    3030uintptr_t heap_size = default_heap_size ;
    3131uintptr_t stack_size = default_stack_size ;
    32 pxx::HeapAllocator allocator (heap_start, default_heap_size) ;
     32pxx::HeapAllocator allocator (heap_start, default_heap_size) __attribute__ ((init_priority (500))) ;
    3333
    3434#if DEBUG
  • to-imperative/trunk/runtime/rf_retval.hh

    r147 r299  
    2323#ifndef __rf_retval_hh__
    2424#define __rf_retval_hh__
     25
     26#include "rf_expr.hh"
     27#include "rf_stack.hh"
     28#include <inttypes.h>
    2529
    2630namespace rfrt
Note: See TracChangeset for help on using the changeset viewer.