2005-05-01 11:48:36 +00:00
|
|
|
AUTOMAKE_OPTIONS= foreign
|
|
|
|
|
2010-12-24 10:39:12 +00:00
|
|
|
pkglibdir=$(libdir)/qfcc/lib
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
QFCC_DEP=$(top_builddir)/tools/qfcc/source/qfcc$(EXEEXT)
|
|
|
|
QFCC=$(QFCC_DEP)
|
2012-01-04 04:17:57 +00:00
|
|
|
QCFLAGS=-qq -g -Werror -Wall -Wno-integer-divide --no-default-paths
|
2005-05-01 11:48:36 +00:00
|
|
|
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
|
2012-02-13 07:08:03 +00:00
|
|
|
GZ=@progs_gz@
|
2011-07-25 21:19:43 +00:00
|
|
|
# BSD make can't handle $(shell foo) directives, and GNU make can't handle |=
|
|
|
|
# so we have to bite the bullet and pass this to the shell every time.
|
|
|
|
STRIP=`echo -n $(srcdir)/ | sed -e 's/[^/]//g' | wc -c`
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
RANLIB=touch
|
|
|
|
|
|
|
|
INCLUDES= -I$(top_srcdir)/ruamoko/include -I$(top_srcdir)/include
|
|
|
|
|
|
|
|
scheme_libs=libscheme.a
|
|
|
|
libs=$(scheme_libs)
|
|
|
|
data=$(scheme_data)
|
|
|
|
|
|
|
|
pkglib_LIBRARIES= $(libs)
|
|
|
|
EXTRA_LIBRARIES= $(scheme_libs)
|
2005-09-07 00:33:11 +00:00
|
|
|
#pkgdata_DATA= $(data)
|
2005-05-01 11:48:36 +00:00
|
|
|
EXTRA_DATA = $(scheme_data)
|
|
|
|
|
2005-07-16 03:46:11 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
BaseContinuation.h Boolean.h CompiledCode.h Compiler.h Cons.h \
|
|
|
|
Continuation.h Error.h Frame.h Instruction.h Lambda.h Lexer.h \
|
|
|
|
Machine.h Nil.h Number.h Parser.h Primitive.h Procedure.h \
|
|
|
|
SchemeObject.h SchemeString.h Scope.h Symbol.h Void.h builtins.h \
|
|
|
|
debug.h defs.h state.h \
|
|
|
|
\
|
2011-07-25 21:19:43 +00:00
|
|
|
main.r defs.r
|
2005-05-01 11:48:36 +00:00
|
|
|
|
2011-07-25 21:19:43 +00:00
|
|
|
SUFFIXES=.qc .qfo .r
|
|
|
|
.r.qfo:
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
|
|
|
|
.r.o:
|
|
|
|
$(QFCC) $(QCFLAGS) $(QCPPFLAGS) -p $(STRIP) -c -o $@ $<
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
libscheme_a_SOURCES=\
|
2005-07-16 03:46:11 +00:00
|
|
|
SchemeObject.r Cons.r Number.r SchemeString.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 \
|
2005-05-08 03:44:18 +00:00
|
|
|
Error.r Boolean.r BaseContinuation.r
|
2005-05-01 11:48:36 +00:00
|
|
|
libscheme_a_AR=$(PAK) -cf
|
|
|
|
|
|
|
|
scheme_data=\
|
|
|
|
main.dat$(GZ)
|
|
|
|
|
|
|
|
scheme_src=\
|
2011-07-25 21:19:43 +00:00
|
|
|
main.r defs.r
|
2005-05-01 11:48:36 +00:00
|
|
|
|
2011-07-25 21:19:43 +00:00
|
|
|
scheme_obj=$(scheme_src:.qc=.o)
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2005-07-16 03:46:11 +00:00
|
|
|
CLEANFILES= *.dat *.sym *.gz *.qfo *.o
|