1 Avr
2011
1 Avr
'11
23:12
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