- added the library dl to the linker options.
This commit is contained in:
parent
20fc229b08
commit
ef23f9f7c7
12
Makefile
12
Makefile
|
@ -1,6 +1,6 @@
|
|||
### update this to fit your system
|
||||
SCSH_SRC = /afs/wsi/home/gasbichl/sw/scsh-0.6
|
||||
SCSH_LIB = /afs/wsi/home/gasbichl/i386_fbsd40/scsh-0.6/lib/scsh
|
||||
SCSH_SRC = /home/david/dev/scsh-0.6
|
||||
SCSH_LIB = /usr/local/lib/scsh
|
||||
X11_PATH = /usr/X11R6
|
||||
|
||||
### the following does not have to be changed (hopefully)
|
||||
|
@ -57,7 +57,7 @@ SCM_CONFIG_FILES = scheme/xlib/xlib-type-interfaces.scm \
|
|||
|
||||
$(SCX_VM): tmpmain.o $(OBJECTS)
|
||||
$(CC) -g -o $(SCX_VM) -L $(SCSH_LIB) -L $(X11_LIB) \
|
||||
tmpmain.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt &&
|
||||
tmpmain.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt -ldl
|
||||
|
||||
$(OBJECTS): c/xlib/xlib.h
|
||||
.c.o:
|
||||
|
@ -74,7 +74,7 @@ main.o: c/main.c
|
|||
### The Image is a dump of the VM with all new packages loaded, and
|
||||
### xlib opened.
|
||||
|
||||
STARTUP_MSG = "with SCX $(SCX_VERSION), the X11 support."
|
||||
STARTUP_MSG = "with SCX $(SCX_VERSION), the X11 support"
|
||||
|
||||
$(SCX_IMAGE): $(SCX_VM) $(SCM_FILES) $(SCM_CONFIG_FILES)
|
||||
( \
|
||||
|
@ -83,11 +83,11 @@ $(SCX_IMAGE): $(SCX_VM) $(SCM_FILES) $(SCM_CONFIG_FILES)
|
|||
echo ",load-package xlib"; \
|
||||
echo ",load-package xlib-types"; \
|
||||
echo ",dump $(SCX_IMAGE) \"$(STARTUP_MSG)\"" \
|
||||
) | $(SCX_VM)
|
||||
) | ./$(SCX_VM)
|
||||
|
||||
$(SCX): $(SCX_IMAGE) main.o $(OBJECTS)
|
||||
$(CC) -g -o $@ -L $(SCSH_LIB) -L $(X11_LIB) \
|
||||
main.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt &&
|
||||
main.o $(OBJECTS) -lscsh -lm -lX11 -lcrypt -ldl
|
||||
|
||||
clean:
|
||||
rm -f $(SCX_VM) $(SCX) $(SCX_IMAGE) *.o c/*.o c/xlib/*.o
|
||||
|
|
Loading…
Reference in New Issue