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

« back to all changes in this revision

Viewing changes to gcl-tk/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: .o  .lsp .lisp .c
 
4
 
 
5
CC=cc
 
6
LD_ORDINARY_CC=${CC}
 
7
GCLTKCC=${CC}
 
8
# Need libX11.a and libtcl.a, machine.defs may say where..
 
9
 
 
10
CC = gcc 
 
11
HDIR    = ../h
 
12
ODIR    = ../o
 
13
 
 
14
GCLIB  = ../o/gcllib.a
 
15
 
 
16
 
 
17
-include ../makedefs
 
18
 
 
19
 
 
20
CFLAGS1=$(CFLAGS) -I../o -I../h ${TK_INCLUDE} ${TCL_INCLUDE} ${TK_XINCLUDES}
 
21
 
 
22
 
 
23
all: gcltksrv   tkl.o tinfo.o  demos/gc-monitor.o gcltkaux
 
24
        (cd demos ; \
 
25
        echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../unixport/$(FLISP)) 
 
26
 
 
27
.lisp.o:
 
28
        echo "(compile-file \"$*.lisp\" :c-file nil :c-debug nil)" | ../unixport/$(FLISP)
 
29
 
 
30
.lsp.o:
 
31
        echo "(compile-file \"$*.lsp\" :c-file nil :c-debug nil)" | ../unixport/$(FLISP)
 
32
 
 
33
 
 
34
 
 
35
GUIOS = guis.o tkAppInit.o tkMain.o
 
36
 
 
37
clean::
 
38
        rm -f ${GUIOS} $(OFILES) gcltkaux gcltksrv *.o */*.o demos/index.lsp *.fn demos/*.fn
 
39
 
 
40
.c.o:
 
41
        $(GCLTKCC) -c $(CFLAGS1) ${ODIR_DEBUG}  $*.c
 
42
 
 
43
 
 
44
# for some reason -lieee is on various linux systems in the list of requireds..
 
45
 
 
46
gcltkaux:  $(GUIOS)
 
47
        $(LD_ORDINARY_CC) $(GUIOS) -o gcltkaux  ${TK_LIB_SPEC} ${TK_BUILD_LIB_SPEC} ${TK_XLIBSW} ${TK_XINCLUDES} ${TCL_LIB_SPEC}  `echo ${TCL_LIBS} | sed -e s:-lieee::g`  ${LIBS} ${GCLIB}
 
48
 
 
49
gcltksrv: makefile
 
50
        cat gcltksrv.in | sed -e "s!TK_LIBRARY=.*!TK_LIBRARY=${TK_LIBRARY}!g" \
 
51
        -e "s!TCL_LIBRARY=.*!TCL_LIBRARY=${TCL_LIBRARY}!g" \
 
52
        -e "s!TK_XLIB_DIR=.*!TK_XLIB_DIR=${TK_XLIB_DIR}!g" \
 
53
        -e "s!GCL_TK_DIR=.*!GCL_TK_DIR=${GCLDIR}/gcl-tk!g" > gcltksrv
 
54
        chmod a+x gcltksrv
 
55
 
 
56
gcltksrv.interp: makefile
 
57
        cat gcltksrv.in.interp | sed -e "s!TK_LIBRARY=.*!TK_LIBRARY=${TK_LIBRARY}!g" \
 
58
        -e "s!TK_XLIB_DIR=.*!TK_XLIB_DIR=${TK_XLIB_DIR}!g" \
 
59
        -e "s!TCL_LIBRARY=.*!TCL_LIBRARY=${TCL_LIBRARY}!g" \
 
60
        -e "s!GCL_TK_DIR=.*!GCL_TK_DIR=${GCLDIR}/gcl-tk!g" > gcltksrv.interp
 
61
        chmod a+x gcltksrv.interp
 
62
 
 
63
INTERESTING=*.lsp *.lisp tk*.c guis.c sockets.c  comm.c Makefile  demos/*.lisp  *.h
 
64
 
 
65
tar:
 
66
        tar cvf - ${INTERESTING} | gzip -c > /u/wfs/sock-`date +%y%m%d`.tgz
 
67
tags:
 
68
        etags *.lsp *.lisp tk*.c guis.c sockets.c   guis.h our_io.c
 
69
 
 
70
tkAppInit.o : tkAppInit.c
 
71
tkMain.o : tkMain.c
 
72
tkXAppInit.o : tkXAppInit.c
 
73
tkXshell.o : tkXshell.c
 
74
guis.o : guis.c guis.h comm.c sheader.h
 
75
sockets.c: our_io.c sheader.h
 
76
socketsl.o: socketsl.lisp sockets.c