Kaffe 0.9.2: error in kaffe/kaffe/Makefile

Mikael Ståldal d96-mst at nada.kth.se
Sun Oct 26 07:14:56 PST 1997


When the kaffe executable is build, the LDFLAGS variable isn't used. Why
not? It's used when building kaffeh.

And in the same Makefile, make clean tries to remove $(LIB) which isn't
defined, not good.

Here is a patch:

*** E:\unix\kaffe-0.9.2\kaffe\kaffe\Makefile.in	Thu Jun 12 06:11:36 1997
--- Makefile.in	Sun Oct 26 20:03:10 1997
***************
*** 20,25 ****
--- 20,26 ----
  INCLUDES=	-I. -I$(srcdir)/../kaffevm -I../../config -I$(srcdir)/../../config -I../../include -I$(srcdir)/../../include
  CFLAGS=		@CFLAGS@
  ALL_CFLAGS=	$(CFLAGS) @KAFFEFLAGS@ $(INCLUDES)
+ LDFLAGS=	@LDFLAGS@
  LIBS=		@NOSHAREDLIBS@
  OBJEXT=		@OBJEXT@
  EXEEXT=		@EXEEXT@
***************
*** 29,41 ****
  all:		kaffe$(EXEEXT)
  
  kaffe$(EXEEXT):	$(OBJECT)
! 		$(CC) $(ALL_CFLAGS) -o kaffe$(EXEEXT) $(OBJECT) $(LIBS)
  
  .c$(OBJEXT):
  		$(CC) $(ALL_CFLAGS) -c $<
  
  clean:
! 		rm -f $(LIB) kaffe$(EXEEXT) kaffe.core $(OBJECT)
  
  distclean:	clean
  		rm -f Makefile
--- 30,42 ----
  all:		kaffe$(EXEEXT)
  
  kaffe$(EXEEXT):	$(OBJECT)
! 		$(CC) $(LDFLAGS) -o kaffe$(EXEEXT) $(OBJECT) $(LIBS)
  
  .c$(OBJEXT):
  		$(CC) $(ALL_CFLAGS) -c $<
  
  clean:
! 		rm -f kaffe$(EXEEXT) kaffe.core $(OBJECT)
  
  distclean:	clean
  		rm -f Makefile

-- 
/****************************************************************\
* You have just read a message from Mikael Ståldal.              *
*                                                                *
* Remove "ingen.reklam." from the address before mail replying.  *
\****************************************************************/



More information about the kaffe mailing list