diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-27 16:29:52 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-27 16:29:52 -0700 |
commit | 53ab016bcb85e1b8924440907309b7b89449ca6f (patch) | |
tree | 865db22e13e478b06fccf9d164df803e9562390c /Makefile | |
parent | dbbf8084e8e4d6c30bf38d649c6cbbb2c86c0134 (diff) | |
download | clink-master.tar.gz clink-master.tar.bz2 clink-master.zip |
This is old code developed in 2005 to replace the "clisp-link" script in
the CLISP project with GNU Makefile rules.
* Makefile: New file.
* binding.lisp: New file.
* call-in.lisp: New file.
* call-out.c: New file.
* clink.mk: New file.
* main.lisp: New file.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c60caae --- /dev/null +++ b/Makefile @@ -0,0 +1,66 @@ +CFLAGS = $(CPPFLAGS) + +# +# Set up namespace for clink.mk +# + +CLK = CFOO_ + +# +# Set up input variables for clink.mk +# + +CFOO_SOURCE_LS := full +CFOO_TARGET_DIR := new/ +CFOO_MODULES := binding +CFOO_OBJECTS := call-out.o +CFOO_PRELOAD := call-in +CFOO_LOAD := main + +# +# all target should be the first one so make with no arguments +# does "make all" +# + +.PHONY all: + +all: + +# +# bring in the magic! +# + +include clink.mk + +# +# a clean target which includes the output variable produces by +# clink.mk, which expands to all of the targets and intermediate +# files produced by the rules therein. +# + +clean: + $(RM) $(CFOO_CLEAN) call-out.o + +# +# Phony target all depends on the Lisp executable and memory +# image, forcing them to be updated. +# + +all: new/$(CFOO_LISPRUN) new/lispinit.mem + +# +# Compiling the extra object files is outside of the responsibility +# of clink.mk, but clink.mk does take care of Lisp -> FAS compiling +# of all of the files mentioned in $(CLK)MODULES, $(CLK)PRELOAD and +# $(CLK)LOAD. +# + +call-out.o: call-out.c + $(CC) $(CFLAGS) -c -o $@ $< + +# +# A kind of test: after all the rules are read, if we switch the +# namespace, it should not screw up any of the rule bodies. +# + +CLK = BAR_ |