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 by values in the Config file
19 # The Config file is the preferred place for tweaking options which
20 # are appropriate for particular setups (OS, CPU, whatever). Make
21 # a Config-foo file for setup foo, then set Config to be a symlink
25 SRCS = alloc.c backtrace.c breakpoint.c coreparse.c \
26 dynbind.c globals.c interr.c interrupt.c \
27 monitor.c parse.c print.c purify.c \
28 regnames.c run-program.c runtime.c save.c search.c \
29 time.c validate.c vars.c \
30 ${ARCH_SRC} ${ASSEM_SRC} ${OS_SRC} ${GC_SRC}
32 OBJS = $(patsubst %.c,%.o,$(patsubst %.S,%.o,$(patsubst %.s,%.o,$(SRCS))))
35 $(NM) sbcl | grep -v " F \| U " > ,$@
39 $(CC) ${LINKFLAGS} ${OS_LINK_FLAGS} -o $@ ${OBJS} ${OS_LIBS} -lm
43 rm -f depend *.o sbcl sbcl.nm core *.tmp ; true
45 depend: ${SRCS} sbcl.h
46 $(CC) -MM -E ${DEPEND_FLAGS} ${CFLAGS} ${CPPFLAGS} $? > depend.tmp
47 mv -f depend.tmp depend