2005-05-01 11:48:36 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
|
|
|
pkglibdir=$(libdir)/ruamoko
|
|
|
|
|
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
|
|
|
QCFLAGS=-qq -g -Werror
|
|
|
|
QCPPFLAGS=$(INCLUDES)
|
|
|
|
PAK=$(top_builddir)/tools/pak/pak$(EXEEXT)
|
|
|
|
GZIP=if echo $@ | grep -q .gz; then gzip -f `basename $@ .gz`; if test -f `basename $@ .dat.gz`.sym; then gzip -f `basename $@ .dat.gz`.sym; fi; fi
|
|
|
|
if HAVE_ZLIB
|
|
|
|
GZ=.gz
|
|
|
|
else
|
|
|
|
GZ=
|
|
|
|
endif
|
|
|
|
STRIP=$(shell echo `echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`)
|
|
|
|
|
|
|
|
RANLIB=touch
|
|
|
|
|
|
|
|
INCLUDES= -I$(top_srcdir)/ruamoko/include -I$(top_srcdir)/include
|
|
|
|
|
|
|
|
scheme_libs=libscheme.a
|
|
|
|
if BUILD_RUAMOKO
|
|
|
|
libs=$(scheme_libs)
|
|
|
|
data=$(scheme_data)
|
|
|
|
else
|
|
|
|
libs=
|
|
|
|
endif
|
|
|
|
|
|
|
|
pkglib_LIBRARIES= $(libs)
|
|
|
|
EXTRA_LIBRARIES= $(scheme_libs)
|
|
|
|
pkgdata_DATA= $(data)
|
|
|
|
EXTRA_DATA = $(scheme_data)
|
|
|
|
|
|
|
|
|
|
|
|
%.qfo: %.r
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
%.o: %.r
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
|
|
|
%.o: %.qc
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
libscheme_a_SOURCES=\
|
|
|
|
SchemeObject.r Cons.r Number.r String.r Symbol.r Lexer.r Parser.r Nil.r \
|
|
|
|
Procedure.r Primitive.r Lambda.r Scope.r Instruction.r builtins.r \
|
2005-05-02 04:58:22 +00:00
|
|
|
Frame.r CompiledCode.r Compiler.r Continuation.r Machine.r Void.r \
|
|
|
|
Error.r
|
2005-05-01 11:48:36 +00:00
|
|
|
libscheme_a_AR=$(PAK) -cf
|
|
|
|
|
|
|
|
scheme_data=\
|
|
|
|
main.dat$(GZ)
|
|
|
|
|
|
|
|
scheme_src=\
|
|
|
|
main.qc defs.qc
|
|
|
|
|
|
|
|
scheme_obj=$(addsuffix .o,$(basename $(scheme_src)))
|
|
|
|
|
|
|
|
main.dat$(GZ): $(scheme_obj) $(QFCC_DEP) ../lib/libcsqc.a ../lib/libr.a libscheme.a
|
|
|
|
$(QFCC) $(QCFLAGS) -p $(STRIP) -o main.dat $(scheme_obj) libscheme.a ../lib/libcsqc.a ../lib/libr.a
|
|
|
|
$(GZIP)
|
|
|
|
|
|
|
|
CLEANFILES= *.qfo *.o
|