scsh-users
[Top] [All Lists]

building scsh-0.3 in a separate directory

To: scsh@martigny.ai.mit.edu
Subject: building scsh-0.3 in a separate directory
From: assar@pdc.kth.se
Date: Sat, 7 Jan 95 09:17:15 +0100
I had some problems building scsh-0.3 in a different directory than
the source directory.

Here are some patches to make it easier:

RCS file: RCS/Makefile.in,v
retrieving revision 1.1
diff -c -r1.1 Makefile.in
*** /tmp/,RCSt1a11525   Sat Jan  7 09:13:24 1995
--- Makefile.in Sat Jan  7 09:07:02 1995
***************
*** 9,15 ****
  DEFS = @DEFS@
  LIBS = @LIBS@
  CFLAGS = @CFLAGS@
! CPPFLAGS= -I./cig -I./scsh/regexp
  INSTALL = @INSTALL@
  INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_DATA = @INSTALL_DATA@
--- 9,15 ----
  DEFS = @DEFS@
  LIBS = @LIBS@
  CFLAGS = @CFLAGS@
! CPPFLAGS= -I$(srcdir)/cig -I$(srcdir)/scsh/regexp
  INSTALL = @INSTALL@
  INSTALL_PROGRAM = @INSTALL_PROGRAM@
  INSTALL_DATA = @INSTALL_DATA@
***************
*** 41,47 ****
  AIX_P = @AIX_P@
  
  .c.o:
!       $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) -o $@ $<
  
  # You might want to change RUNNABLE to "s48" # NOT -bri
  RUNNABLE = scsh
--- 41,47 ----
  AIX_P = @AIX_P@
  
  .c.o:
!       $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(CFLAGS) -o $@ $<
  
  # You might want to change RUNNABLE to "s48" # NOT -bri
  RUNNABLE = scsh
***************
*** 266,272 ****
  
  check:        $(VM) $(IMAGE) debug/check.scm
        (echo ,translate =scheme48/ $(srcdir)/; \
!        echo ,config ,load $(srcdir)/debug/test.scm; \
         echo ,exec ,load $(srcdir)/debug/check.scm; echo ,exec "(done)") \
        | ./$(VM) -i $(IMAGE) -a batch
  
--- 266,272 ----
  
  check:        $(VM) $(IMAGE) debug/check.scm
        (echo ,translate =scheme48/ $(srcdir)/; \
!        echo ,config ,load $(srcdir)/debug/test.scm; \
         echo ,exec ,load $(srcdir)/debug/check.scm; echo ,exec "(done)") \
        | ./$(VM) -i $(IMAGE) -a batch
  
***************
*** 437,451 ****
         echo ",flush"; \
         echo ",flush maps source names files table"; \
         echo ",translate =scheme48/ $(srcdir)/"; \
!        echo ",config ,load cig/cig.scm"; \
!        echo ",config ,load cig/libcig.scm"; \
         echo ",load-package cig-standalone"; \
         echo ",flush"; echo ",flush maps source names files table"; \
         echo ",in cig-standalone"; \
         echo ",translate =scheme48/ $(LIB)/"; \
         echo ",build cig-standalone-toplevel /tmp/cig") \
!       | $(srcdir)/$(VM) -i $(srcdir)/$(IMAGE)
!       cig/image2script $(LIB)/$(VM) </tmp/cig > $(CIG)
        -chmod +x $(CIG)
        $(RM) /tmp/cig
  
--- 437,451 ----
         echo ",flush"; \
         echo ",flush maps source names files table"; \
         echo ",translate =scheme48/ $(srcdir)/"; \
!        echo ",config ,load $(srcdir)/cig/cig.scm"; \
!        echo ",config ,load $(srcdir)/cig/libcig.scm"; \
         echo ",load-package cig-standalone"; \
         echo ",flush"; echo ",flush maps source names files table"; \
         echo ",in cig-standalone"; \
         echo ",translate =scheme48/ $(LIB)/"; \
         echo ",build cig-standalone-toplevel /tmp/cig") \
!       | ./$(VM) -i $(IMAGE)
!       $(srcdir)/cig/image2script $(LIB)/$(VM) </tmp/cig > $(CIG)
        -chmod +x $(CIG)
        $(RM) /tmp/cig
  
***************
*** 454,467 ****
         echo ",flush"; \
         echo ",flush maps source names files table"; \
         echo ",translate =scheme48/ $(srcdir)/"; \
!        echo ",config ,load cig/cig.scm"; \
!        echo ",config ,load cig/libcig.scm"; \
         echo ",load-package cig-aux"; \
         echo ",open define-foreign-syntax"; \
         echo ",translate =scheme48/ $(LIB)/"; \
         echo ",dump /tmp/cig \"(CIG Preloaded -bri)\"") \
!       | $(srcdir)/$(VM) -o $(srcdir)/$(VM) -i $(srcdir)/$(IMAGE)
!       cig/image2script $(LIB)/$(VM) \
                        -o $(LIB)/$(VM) \
                        </tmp/cig > $(CIG).image
        -chmod +x $(CIG).image
--- 454,467 ----
         echo ",flush"; \
         echo ",flush maps source names files table"; \
         echo ",translate =scheme48/ $(srcdir)/"; \
!        echo ",config ,load $(srcdir)/cig/cig.scm"; \
!        echo ",config ,load $(srcdir)/cig/libcig.scm"; \
         echo ",load-package cig-aux"; \
         echo ",open define-foreign-syntax"; \
         echo ",translate =scheme48/ $(LIB)/"; \
         echo ",dump /tmp/cig \"(CIG Preloaded -bri)\"") \
!       | ./$(VM) -o $(VM) -i $(IMAGE)
!       $(srcdir)/cig/image2script $(LIB)/$(VM) \
                        -o $(LIB)/$(VM) \
                        </tmp/cig > $(CIG).image
        -chmod +x $(CIG).image
***************
*** 495,507 ****
        $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) \
        -DVM=\"$(LIB)/$(VM)\" \
        -DIMAGE=\"$(LIB)/scsh.image\" \
!       scsh/scsh-tramp.c
  
  scsh/scsh.image: $(SCHEME) $(CIG).image scsh/load-scsh.scm
        (echo ",translate =scheme48/ $(srcdir)/"; \
!        cat scsh/load-scsh.scm; \
         echo ",translate =scheme48/ $(LIB)/") \
!       | $(srcdir)/$(VM) -o $(srcdir)/$(VM) -i $(CIG).image \
  
  #scsh/scsh.runnable: scsh/scsh.image
  #     cig/image2script $(LIB)/$(VM) -o $(LIB)/$(VM) -h 1800000 \
--- 495,507 ----
        $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) \
        -DVM=\"$(LIB)/$(VM)\" \
        -DIMAGE=\"$(LIB)/scsh.image\" \
!       $<
  
  scsh/scsh.image: $(SCHEME) $(CIG).image scsh/load-scsh.scm
        (echo ",translate =scheme48/ $(srcdir)/"; \
!        sed 's@scsh/$$@$(srcdir)/scsh/@' < $(srcdir)/scsh/load-scsh.scm; \
         echo ",translate =scheme48/ $(LIB)/") \
!       | ./$(VM) -o $(VM) -i $(CIG).image
  
  #scsh/scsh.runnable: scsh/scsh.image
  #     cig/image2script $(LIB)/$(VM) -o $(LIB)/$(VM) -h 1800000 \
===================================================================
RCS file: RCS/configure.in,v
retrieving revision 1.1
diff -c -r1.1 configure.in
*** /tmp/,RCSt1a11525   Sat Jan  7 09:13:47 1995
--- configure.in        Tue Jan  3 12:17:09 1995
***************
*** 132,136 ****
       AC_SUBST(CFLAGS)
       AC_SUBST(CFLAGS1)
       AC_SUBST(LDFLAGS)
!      echo "making symbolic links";./config.scsh
  AC_OUTPUT(Makefile scsh/regexp/Makefile)
--- 132,136 ----
       AC_SUBST(CFLAGS)
       AC_SUBST(CFLAGS1)
       AC_SUBST(LDFLAGS)
!      echo "making symbolic links";$srcdir/config.scsh $srcdir
  AC_OUTPUT(Makefile scsh/regexp/Makefile)
===================================================================
RCS file: RCS/config.scsh,v
retrieving revision 1.1
diff -c -r1.1 config.scsh
*** /tmp/,RCSt1a11525   Sat Jan  7 09:13:47 1995
--- config.scsh Tue Jan  3 13:41:01 1995
***************
*** 1,6 ****
  #!/bin/sh
  # This file based remotely on code in emacs's configure.in -bri
! case `./config.guess` in
  
    ## CX/UX
    m88k-harris-cxux* )
--- 1,7 ----
  #!/bin/sh
  # This file based remotely on code in emacs's configure.in -bri
! srcdir=$1
! case `$srcdir/config.guess` in
  
    ## CX/UX
    m88k-harris-cxux* )
***************
*** 65,71 ****
  files="errno.scm fdflags.scm load-scsh.scm netconst.scm packages.scm \
        signals.scm waitcodes.scm stdio_dep.c"
  
  for file in $files ; do
    /bin/rm -f scsh/$file
!   ln -s $dir/$file scsh/$file
  done
--- 66,74 ----
  files="errno.scm fdflags.scm load-scsh.scm netconst.scm packages.scm \
        signals.scm waitcodes.scm stdio_dep.c"
  
+ mkdir scsh
+ mkdir cig
  for file in $files ; do
    /bin/rm -f scsh/$file
!   ln -s $srcdir/$dir/$file scsh/$file
  done
===================================================================
RCS file: scsh/regexp/RCS/Makefile.in,v
retrieving revision 1.1
diff -c -r1.1 scsh/regexp/Makefile.in
*** /tmp/,RCSt1a11525   Sat Jan  7 09:13:48 1995
--- scsh/regexp/Makefile.in     Sat Jan  7 07:50:38 1995
***************
*** 11,17 ****
  # Things you might want to put in TEST:
  # -DDEBUG             debugging hooks
  # -I.                 regexp.h from current directory, not /usr/include
! TEST=-I.
   
  # Things you might want to put in PROF:
  # -Dstatic='/* */'    make everything global so profiler can see it.
--- 11,17 ----
  # Things you might want to put in TEST:
  # -DDEBUG             debugging hooks
  # -I.                 regexp.h from current directory, not /usr/include
! TEST=-I. -I$(srcdir)
   
  # Things you might want to put in PROF:
  # -Dstatic='/* */'    make everything global so profiler can see it.
***************
*** 22,27 ****
--- 22,29 ----
  LIBDEST=/contrib/system/lib
  MANDEST=/contrib/share/man/man3
  
+ srcdir = @srcdir@
+ VPATH = @srcdir@
  CC = @CC@
  CFLAGS1 = @CFLAGS1@

<Prev in Thread] Current Thread [Next in Thread>
  • building scsh-0.3 in a separate directory, assar <=