~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to lsp/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.SUFFIXES:
 
3
.SUFFIXES: .fn .o .c .lsp
 
4
 
 
5
-include ../makedefs
 
6
 
 
7
 
 
8
PORTDIR = ../unixport
 
9
CAT=cat
 
10
APPEND=../xbin/append
 
11
 
 
12
OBJS    = gcl_arraylib.o gcl_assert.o gcl_defmacro.o gcl_defstruct.o \
 
13
          gcl_describe.o gcl_evalmacros.o \
 
14
          gcl_iolib.o gcl_listlib.o gcl_mislib.o gcl_module.o gcl_numlib.o \
 
15
          gcl_packlib.o gcl_predlib.o \
 
16
          gcl_seq.o gcl_seqlib.o gcl_setf.o gcl_top.o gcl_trace.o gcl_sloop.o \
 
17
          gcl_debug.o gcl_info.o gcl_serror.o 
 
18
# export.o autoload.o auto_new.o
 
19
 
 
20
 
 
21
COMPILE_FILE=$(PORTDIR)/saved_pre_gcl $(PORTDIR) -system-p -c-file -data-file \
 
22
        -o-file nil -h-file -compile
 
23
#CFLAGS = -c -O -I../h 
 
24
 
 
25
.lsp.c: 
 
26
        @ ../xbin/if-exists $(PORTDIR)/saved_pre_gcl \
 
27
        "rm -f $*.c $*.h $*.data $*.o" \
 
28
        "$(COMPILE_FILE) $* "
 
29
 
 
30
.lsp.o: 
 
31
         @ ../xbin/if-exists $(PORTDIR)/saved_pre_gcl \
 
32
        "rm -f $*.c $*.h $*.data $*.o" \
 
33
        "$(COMPILE_FILE) $* " \
 
34
        "$(CC) $(OFLAG) $(CFLAGS) -c $*.c " \
 
35
        "${APPEND} ${NULLFILE} $*.data $*.o "
 
36
 
 
37
 
 
38
all:    $(OBJS)
 
39
 
 
40
 
 
41
 
 
42
.c.o:
 
43
        $(CC) $(OFLAG) $(CFLAGS) -c $*.c
 
44
        ${APPEND} ${NULLFILE} $*.data  $*.o
 
45
 
 
46
.lsp.fn: ../cmpnew/gcl_collectfn.o
 
47
        ../xbin/make-fn $*.lsp
 
48
 
 
49
all:    $(OBJS)
 
50
 
 
51
fns1:   $(FNS)
 
52
 
 
53
fns:    ../cmpnew/gcl_collectfn.o
 
54
        $(MAKE) fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
 
55
 
 
56
#../cmpnew/collectfn.o: ../cmpnew/collectfn.lsp
 
57
#       (cd ../cmpnew ; $(PORTDIR)/saved_gcl $(PORTDIR)/ collectfn.lisp collectfn S1000)
 
58
 
 
59
 
 
60
clean:
 
61
        rm -f *.o core a.out *.fn *.c *.h *.data
 
62
allclean:
 
63
        rm -f *.h *.data *.c
 
64
 
 
65
dummy3 $(NEWCFILES): sys-proclaim.lisp
 
66
 
 
67
sys-proclaim.lisp: fns
 
68
        echo '(in-package "SYSTEM")' \
 
69
        '(load "../cmpnew/gcl_collectfn")'\
 
70
        '(compiler::make-all-proclaims "*.fn")' | ../unixport/saved_gcl
 
71
 
 
72
 
 
73
newc:   
 
74
        $(MAKE) $(OBJS) -e "NEWCFILES=`echo $(OBJS) | sed -e 's:\.o:.c:g'`"
 
75
 
 
76