| Re: A decent forth compiler |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.forth · Group Profile
Author: Aleksej SaushevAleksej Saushev Date: Sep 20, 2008 05:23
Bernd Paysan writes:
> Aleksej Saushev wrote:
>> There is 32K Makefile, which pretends to be backwards-compatible,
>> but fails in it and requires gmake, what is the intention?
>> To be compatible or not?
>
> Hm, I think there are only two lines left that are not make-compatible. Goal
> is to make it compatible, but testing this is quite hard, since gmake is
> almost everywhere now.
The following enables building with NetBSD make for me:
--- Makefile.in.orig 2008-09-19 20:47:27.000000000 +0400
+++ Makefile.in 2008-09-20 14:51:59.000000000 +0400
@@ -863,10 +863,12 @@
# ------------- additional C primitives
-%%.c: %%.pri prim2cl.fs
+.SUFFIXES: .c .pri
+
+.pri.c: $< prim2cl.fs
$(FORTHK) prim2cl.fs -e "file $< altogether bye" >$@
-%%.so: %%.c
+.c.so: $<
$(GCC) -shared $(CFLAGS) $(CPPFLAGS) $< -o $@
#
------------- Make Documentation
--
HE CE3OH...
|