[gambit-list] Gambit and Automake
Diogo F. S. Ramos
diogofsr at gmail.com
Fri Apr 1 19:12:41 EDT 2011
I'm using Automake -- and Autoconf FWIW -- to compile gambit programs
and I wonder if anyone else is doing it.
I've setup a Makefile.am but I'm not very happy with it. I fell that
there probably is a better way.
Is anyone doing it?
I know I could have done something like:
foo: $(foo_SOURCES)
gsc -o $@ -exe $^
But I wanted something more fine grained.
Well, here goes my Makefile.am:
LDFLAGS = -lgambc -lm -ldl -lutil
bin_PROGRAMS = foo
foo_SOURCES = foo.scm linker.c
CLEANFILES=linker.c
.scm.o:
LINK=gcc -o $@ $(LDFLAGS)
%.o: %.scm linker.c
gsc -obj $<
linker.c: $(filter %.scm,$(foo_SOURCES))
gsc -o $@ -link $^
--
Diogo F. S. Ramos
More information about the Gambit-list
mailing list