Re: superfluous GNUism in the makefile

Ivan Shmakov <[email protected]>
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
>>>>> Taylor R Campbell <[email protected]> writes:

 >> I've taken the package from:

 >> http://packages.debian.org/lenny/pmake

 >> I don't know whether there's a naming clash or not.

 >> This particular version apparently supports both $< in explicit
 >> rules and VPATH.

 > That appears to have been derived from the same source as the make I
 > was using.  I couldn't tell from your very complicated transcript,
 > involving ellipsis

	Oh, incidentally I though that the full transcript would be
	boring...  Is one still needed?

 > and multiple make targets all different from the one I tested,

	I was building the development version, and I had to use the
	appropriate targets.  Please compare:

$ nl -ba autogen.sh 
...
     9	rm -f scheme48.image build/initial.image-32 build/initial.image-64 c/scheme48.h &&
    10	make build/filenames.make &&
    11	make i-know-what-i-am-doing &&
    12	make c/scheme48.h &&
    13	make build/initial.image-32 build/initial.image-64 &&
    14	make distclean
$ 

$ LC_ALL=C MAKE=pmake nohup /usr/bin/time \
      pmake \
          ../build/filenames.make \
          i-know-what-i-am-doing \
          c/scheme48.h \
          ../build/initial.image-{32,64} 

	I've adjusted some targets since the Scheme48 build system
	expects these particular targets to be built and found under
	$(srcdir) (which is `..'), and not the building directory.

	Would it be a release tarball, the first Make invocation would
	be unnecessary, as these files are part of it.

 > whether in fact your incantations of make actually tried to execute
 > the commands for the c/srfi-27.(s)o rules.

	The nohup.out-2 is as shown below.  The rules seems to work
	fine.  But note that your suggestion was already applied to a
	particular instance of $^:

$ hg log 
changeset:   1296:feb2dd47df29
tag:         tip
user:        Mike Sperber <[email protected]>
date:        Fri Aug 14 17:21:46 2009 +0200
summary:     Fix type declaration for `list-sorted?'.

...

changeset:   1292:b47a0eba65be
user:        Mike Sperber <[email protected]>
date:        Sat Aug 08 17:25:22 2009 +0200
summary:     Zap $^ from Makefile.

[...]

$ cat nohup.out 
--- go ---
--- c/free.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/free.o ../c/free.c
--- go ---
echo '#!/bin/sh'	>go &&					 echo			>>go &&					 echo "lib=\"`pwd`\""	>>go &&					 echo 'exec "$lib"/scheme48vm -i "$lib"/scheme48.image "$@"'		 >>go &&					 chmod +x go
--- c/double_to_string.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/double_to_string.o ../c/double_to_string.c
--- c/external-init.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/external-init.o ../c/external-init.c
--- c/init.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/init.o ../c/init.c
--- c/scheme48-twospace-heap-64.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/scheme48-twospace-heap-64.o ../c/scheme48-twospace-heap-64.c
--- c/unix/misc.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/misc.o ../c/unix/misc.c
--- c/unix/io.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/io.o ../c/unix/io.c
--- c/unix/fd-io.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/fd-io.o ../c/unix/fd-io.c
--- c/unix/event.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/event.o ../c/unix/event.c
--- c/unix/sysexits.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/sysexits.o ../c/unix/sysexits.c
--- c/fake/glue.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/fake/glue.o ../c/fake/glue.c
--- c/script-interpreter.o ---
gcc -c -g -O2 -pthread -o c/script-interpreter.o  -DRUNNABLE=\"/nowhere/bin/scheme48\"   -DHAVE_CONFIG_H  -I ./c -I../c  ../c/script-interpreter.c
--- c/posix/posix.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/posix.o ../c/posix/posix.c
--- c/main.o ---
gcc -c -g -O2 -pthread -o c/main.o  -DDEFAULT_IMAGE_NAME=\"/nowhere/lib/scheme48-1.`cat ../build/minor-version-number`/scheme48.image\"   -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" ../c/main.c
--- script-interpreter ---
gcc -rdynamic -pthread -g -O2 -pthread -o script-interpreter c/script-interpreter.o
--- c/posix/user.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/user.o ../c/posix/user.c
--- c/posix/regexp.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/regexp.o ../c/posix/regexp.c
--- c/posix/proc-env.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/proc-env.o ../c/posix/proc-env.c
--- c/posix/io.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/io.o ../c/posix/io.c
--- c/posix/proc.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/proc.o ../c/posix/proc.c
--- c/posix/dir.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/posix/dir.o ../c/posix/dir.c
--- c/srfi-27.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/srfi-27.o ../c/srfi-27.c
--- c/ffi-test/ffi-test.o ---
gcc -c  -DHAVE_CONFIG_H -I ./c -I../c -I../c/bibop -g -O2 -pthread -fPIC -o c/ffi-test/ffi-test.o ../c/ffi-test/ffi-test.c
--- c/scheme48vm-64.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/scheme48vm-64.o ../c/scheme48vm-64.c
--- c/bignum.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/bignum.o ../c/bignum.c
--- c/extension.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/extension.o ../c/extension.c
--- c/ffi.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/ffi.o ../c/ffi.c
--- c/external.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/external.o ../c/external.c
--- c/external-lib.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/external-lib.o ../c/external-lib.c
--- c/net/address.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/net/address.o ../c/net/address.c
--- c/net/socket.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/net/socket.o ../c/net/socket.c
--- c/unix/socket.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/socket.o ../c/unix/socket.c
--- c/net/net.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/net/net.o ../c/net/net.c
--- c/unix/dynlink.o ---
gcc -c  -DHAVE_CONFIG_H -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"x86_64-unknown-linux-gnu\" -I ./c -I../c -I../c/net -I../c/bibop -g -O2 -pthread -o c/unix/dynlink.o ../c/unix/dynlink.c
--- c/srfi-27.so ---
gcc -o c/srfi-27.so  c/srfi-27.o -shared  -rdynamic
--- c/posix.so ---
gcc -o c/posix.so c/posix/user.o     c/posix/regexp.o	 c/posix/proc-env.o c/posix/proc.o	 c/posix/io.o	c/posix/dir.o	 c/posix/posix.o -shared  -rdynamic
--- c/ffi-test.so ---
gcc -o c/ffi-test.so c/ffi-test/ffi-test.o -shared  -rdynamic
--- scheme48vm ---
--- c/libscheme48.a ---
--- scheme48vm ---
gcc -rdynamic -pthread  -g -O2 -pthread -o scheme48vm c/main.o		 c/scheme48vm-64.o  c/extension.o c/free.o c/double_to_string.o c/bignum.o c/ffi.o  c/external.o c/external-lib.o c/external-init.o c/init.o c/scheme48-twospace-heap-64.o c/unix/misc.o c/unix/io.o c/unix/fd-io.o c/unix/event.o				 						 c/net/socket.o c/net/address.o c/net/net.o c/unix/socket.o  c/unix/dynlink.o  c/unix/sysexits.o c/fake/glue.o  -lnsl -ldl -lm
--- c/libscheme48.a ---
rm -f c/libscheme48.a;							 ar cq c/libscheme48.a c/scheme48vm-64.o  c/extension.o c/free.o c/double_to_string.o c/bignum.o c/ffi.o  c/external.o c/external-lib.o c/external-init.o c/init.o c/scheme48-twospace-heap-64.o c/unix/misc.o c/unix/io.o c/unix/fd-io.o c/unix/event.o  c/net/socket.o c/net/address.o c/net/net.o c/unix/socket.o  c/unix/dynlink.o  c/unix/sysexits.o c/fake/glue.o
ranlib c/libscheme48.a
--- scheme48vm ---
# Cygwin
if test -x /usr/bin/dlltool; then  dlltool --dllname scheme48vm.exe --output-lib scheme48vm.a --def ../c/scheme48.def;  fi
--- scheme48.image ---
../build/build-usual-image ..  "`(cd .. && pwd)`/scheme" "`pwd`/c" 'scheme48.image' './scheme48vm'  '../build/initial.image-64'
../scheme/env/init-defpackage.scm
#{Unspecific}
../scheme/packages.scm
../scheme/more-interfaces.scm
../scheme/link-packages.scm
../scheme/env-packages.scm
../scheme/sort/interfaces.scm
../scheme/sort/packages.scm
../scheme/more-packages.scm
../scheme/r6rs/packages.scm
../scheme/net/packages.scm
../scheme/posix/packages.scm
../scheme/cml/interfaces.scm
../scheme/cml/packages.scm
../scheme/srfi/packages.scm
[display-conditions ../scheme/env/dispcond.scm]
[command-levels ../scheme/env/user.scm ../scheme/env/command-level.scm]
[disclosers ../scheme/env/disclosers.scm]
[menus ../scheme/env/menu.scm]
[command-processor ../scheme/env/version-info.scm ../scheme/env/command.scm ../scheme/env/read-command.scm]
#{Unspecific}
[basic-commands ../scheme/env/basic-command.scm]
[build ../scheme/env/build.scm]
[more-vm-exceptions ../scheme/env/vm-exception.scm]
[shadowing ../scheme/env/shadow.scm]
[package-mutation ../scheme/env/pedit.scm]
[package-commands ../scheme/env/pacman.scm]
[debugging ../scheme/env/debug.scm]
[inspect-commands ../scheme/env/inspect.scm]
[parse-bytecode ../scheme/env/parse-bytecode.scm]
[disassembler ../scheme/env/disasm.scm]
[usual-commands]
#{Unspecific}
[debuginfo ../scheme/env/debuginfo.scm]
[extended-numbers ../scheme/rts/xnum.scm]
[ratnums ../scheme/rts/ratnum.scm]
[recnums ../scheme/rts/recnum.scm]
[floatnums ../scheme/rts/floatnum.scm
Analyzing... no in-line procedures
]
[finite-types ../scheme/big/finite-type.scm]
[unicode-char-maps ../scheme/env/unicode-category.scm ../scheme/env/unicode-info.scm ../scheme/env/unicode-charmap.scm]
[usual-features]
#{Unspecific}
Reading ../build/initial.debug
#{Unspecific}
#{Unspecific}
#{Unspecific}
Writing scheme48.image
25.62user 1.52system 0:21.41elapsed 126%CPU (0avgtext+0avgdata 0maxresident)k
32inputs+34776outputs (0major+267753minor)pagefaults 0swaps
$ 

-- 
FSF associate member #7257
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.