File: Makefile.in

package info (click to toggle)
clisp 1%3A2.49-8.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 45,160 kB
  • sloc: lisp: 79,960; ansic: 48,257; xml: 26,814; sh: 12,846; fortran: 7,286; makefile: 1,456; perl: 164
file content (70 lines) | stat: -rw-r--r-- 1,848 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Makefile for CLISP module syscalls

srcdir = @srcdir@
CC = @CC@
# __EXTENSIONS__ is necessary so that the Solaris headers declare confstr().
# _REENTRANT is necessary so that the Solaris headers declare lgamma_r().
CPPFLAGS = @CPPFLAGS@ -D__EXTENSIONS__ -D_REENTRANT
CFLAGS = @CFLAGS@
CLISP = @CLISP@ -norc -q
CLISP_LIBDIR = @CLISP_LIBDIR@
CLISP_LINKKIT = @CLISP_LINKKIT@

LN = @LN@
LN_S = @LN_S@

MAKE = make

SHELL = /bin/sh

GENERATED = calls.o bogomips.o posix.fas libgnu_sc.a preload.lisp
DISTRIBFILES = link.sh Makefile $(GENERATED) \
	$(srcdir)/posix.lisp $(srcdir)/README
distribdir =

# default target: make the module
clisp-module : $(GENERATED)

.PHONY : am--refresh clisp-module clisp-module-distrib clean distclean force

# no $(CPPFLAGS) $(CFLAGS) to avoid all optimizations
bogomips.o : $(srcdir)/bogomips.c
	$(CC) -c $(srcdir)/bogomips.c -o bogomips.o

posix.fas: $(srcdir)/posix.lisp
	$(CLISP) -c $(srcdir)/posix.lisp -o ./

calls.m.c: $(srcdir)/calls.c
	$(CLISP) -C $(CLISP_LINKKIT)/modprep $(srcdir)/calls.c ./

calls.o : calls.m.c config.h gllib
	$(CC) $(CPPFLAGS) $(CFLAGS) -I$(CLISP_LINKKIT) \
		-Igllib -I$(srcdir)/gllib -c calls.m.c -o calls.o

preload.lisp : $(srcdir)/preload.lisp
	$(LN_S) $(srcdir)/preload.lisp .

am--refresh :

# syscalls relies on src/gllib, so we must also include files in the build dir
gllib libgnu_sc.a : force
	rm -f libgnu_sc.a
	mkdir -p gllib
	test -f gllib/Makefile || sh config.status gllib/Makefile depfiles
	cd gllib; \
	  $(MAKE) srcdir="$(srcdir)/gllib" \
		ACLOCAL_M4="$(srcdir)/gllib/Makefile.am" \
		CFLAGS="$(CFLAGS) -I$(CLISP_LIBDIR)"; \
	  $(LN) libgnu.a ../libgnu_sc.a

# Make a module distribution into $(distribdir)
clisp-module-distrib : clisp-module force
	$(LN) $(DISTRIBFILES) $(distribdir)

clean : force
	rm -f core *.o *.a *.m.c *.fas *.lib

distclean : clean

force :