1 # makefile for the C-level run-time support for SBCL
3 # This software is part of the SBCL system. See the README file for
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
15 # defaults which might be overridden or modified by values in the
22 # Some of these things might be Config-dependent in future versions,
23 # but they're the same on most systems right now. If you need to
24 # override one of these, do it in Config
31 # The Config file is the preferred place for tweaking options which
32 # are appropriate for particular setups (OS, CPU, whatever). Make a
33 # Config-foo file for setup foo, then arrange for Config to be a
34 # symlink to Config-foo.
38 C_SRCS =alloc.c backtrace.c breakpoint.c coreparse.c \
39 dynbind.c gc-common.c globals.c interr.c interrupt.c \
40 monitor.c parse.c print.c purify.c \
41 regnames.c run-program.c runtime.c save.c search.c \
42 time.c util.c validate.c vars.c wrap.c
44 SRCS= $(C_SRCS) ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
46 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
49 $(NM) sbcl | grep -v " F \| U " > ,$@
53 $(CC) ${LINKFLAGS} ${OS_LINK_FLAGS} -o $@ ${OBJS} ${OS_LIBS} -lm
58 -rm -f depend *.o sbcl sbcl.nm core *.tmp
61 depend: ${C_SRCS} sbcl.h
62 $(CC) ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} ${C_SRCS} > depend.tmp
63 mv -f depend.tmp depend
65 # By including this file, we cause GNU make to automatically "make depend"
66 # if it can't find it or it is out of date.