From eb193c9feda776a4ccdba539c0a5d13500c50e95 Mon Sep 17 00:00:00 2001 From: mainzelm Date: Tue, 4 Dec 2001 14:20:18 +0000 Subject: [PATCH] + Let the image depend on the config files. + Minor clean-up. --- Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c7b23d9..5c85710 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,11 @@ SCM_FILES = scheme/xlib/atom-type.scm scheme/xlib/client.scm \ scheme/xlib/window-type.scm scheme/xlib/window.scm \ scheme/xlib/wm.scm +SCM_CONFIG_FILES = scheme/xlib/xlib-type-interfaces.scm \ + scheme/xlib/xlib-type-package.scm \ + scheme/xlib/xlib-interfaces.scm \ + scheme/xlib/xlib-packages.scm + $(SCX_VM): tmpmain.o $(OBJECTS) $(CC) -g -o $(SCX_VM) -L $(SCSH_LIB) -L $(X11_LIB) \ tmpmain.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt && @@ -71,13 +76,10 @@ main.o: c/main.c STARTUP_MSG = "with SCX $(SCX_VERSION), the X11 support." -$(SCX_IMAGE): $(SCX_VM) $(SCM_FILES) +$(SCX_IMAGE): $(SCX_VM) $(SCM_FILES) $(SCM_CONFIG_FILES) ( \ echo ",batch on"; \ - echo ",config ,load scheme/xlib/xlib-type-interfaces.scm"; \ - echo ",config ,load scheme/xlib/xlib-type-package.scm"; \ - echo ",config ,load scheme/xlib/xlib-interfaces.scm"; \ - echo ",config ,load scheme/xlib/xlib-packages.scm"; \ + echo ",config ,load $(SCM_CONFIG_FILES)"; \ echo ",load-package xlib"; \ echo ",load-package xlib-types"; \ echo ",dump $(SCX_IMAGE) \"$(STARTUP_MSG)\"" \ @@ -87,8 +89,5 @@ $(SCX): $(SCX_IMAGE) main.o $(OBJECTS) $(CC) -g -o $@ -L $(SCSH_LIB) -L $(X11_LIB) \ main.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt && -#SCSH_IMAGE = "/afs/wsi/home/dfreese/i386_fbsd43/lib/scheme48/scsh.image" -#main.c: - clean: rm -f $(SCX_VM) $(SCX) $(SCX_IMAGE) *.o c/*.o c/xlib/*.o