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

« back to all changes in this revision

Viewing changes to mod/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_destructuring_bind.o gcl_defpackage.o gcl_make_defpackage.o gcl_loop.o $(EXTRA_LOBJS)
 
13
# export.o autoload.o auto_new.o
 
14
 
 
15
 
 
16
COMPILE_FILE=$(PORTDIR)/saved_gcl $(PORTDIR) -system-p -c-file -data-file \
 
17
        -o-file nil -h-file -compile
 
18
#CFLAGS = -c -O -I../h 
 
19
 
 
20
.lsp.c: 
 
21
        @ ../xbin/if-exists $(PORTDIR)/saved_gcl \
 
22
        "rm -f $*.c $*.h $*.data $*.o" \
 
23
        "$(COMPILE_FILE) $* "
 
24
 
 
25
.lsp.o: 
 
26
         @ ../xbin/if-exists $(PORTDIR)/saved_gcl \
 
27
        "rm -f $*.c $*.h $*.data $*.o" \
 
28
        "$(COMPILE_FILE) $* " \
 
29
        "$(CC) $(OFLAG) $(CFLAGS) -c $*.c " \
 
30
        "${APPEND} ${NULLFILE} $*.data $*.o "
 
31
 
 
32
 
 
33
all:    $(OBJS) #$(RL_OBJS)
 
34
 
 
35
 
 
36
 
 
37
.c.o:
 
38
        $(CC) $(OFLAG) $(CFLAGS) -c $*.c
 
39
        ${APPEND} ${NULLFILE} $*.data  $*.o
 
40
 
 
41
.lsp.fn: ../cmpnew/gcl_collectfn.o
 
42
        ../xbin/make-fn $*.lsp
 
43
 
 
44
all:    $(OBJS)
 
45
 
 
46
fns1:   $(FNS)
 
47
 
 
48
fns:    ../cmpnew/gcl_collectfn.o
 
49
        $(MAKE) fns1 -e "FNS=`echo ${OBJS} | sed -e 's:\.o:\.fn:g'`"
 
50
 
 
51
#../cmpnew/collectfn.o: ../cmpnew/collectfn.lsp
 
52
#       (cd ../cmpnew ; $(PORTDIR)/saved_gcl $(PORTDIR)/ collectfn.lisp collectfn S1000)
 
53
 
 
54
 
 
55
clean:
 
56
        rm -f *.o core a.out *.fn *.c *.h *.data
 
57
allclean:
 
58
        rm -f *.h *.data *.c
 
59
 
 
60
dummy3 $(NEWCFILES): sys-proclaim.lisp
 
61
 
 
62
sys-proclaim.lisp: fns
 
63
        echo '(in-package "SYSTEM")' \
 
64
        '(load "../cmpnew/gcl_collectfn")'\
 
65
        '(compiler::make-all-proclaims "*.fn")' | ../unixport/saved_mod_gcl
 
66
 
 
67
 
 
68
newc:   
 
69
        $(MAKE) $(OBJS) -e "NEWCFILES=`echo $(OBJS) | sed -e 's:\.o:.c:g'`"
 
70
 
 
71