File: Makefile.in

package info (click to toggle)
kaya 0.4.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,448 kB
  • ctags: 1,694
  • sloc: cpp: 9,536; haskell: 7,461; sh: 3,013; yacc: 910; makefile: 816; perl: 90
file content (155 lines) | stat: -rw-r--r-- 5,649 bytes parent folder | download | duplicates (4)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
RVPATH=@srcdir@
VPATH=${RVPATH}
LANGNAME = @LANGNAME@
KAYAC = ../compiler/@TARGET@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@/${LANGNAME}
LIBDIR = ${libdir}
IMPORTDIR = ${libdir}/imports
CXXFLAGS = @FPIC@ @EXTRAGCCOPTS@ -I../rts @INTERPROF@ @HASUTF8@ -I${VPATH}/../rts
KAYAINC = @KAYAPROF@ -noenvlibs -I../rts -I${VPATH}/../rts
KAYAFLAGS = -noprelude -nochase ${KAYAINC} -nortchecks -L ../rts_opt -L ../rts -xmldocs -L ${VPATH} -L ${VPATH}/../rts
INSTALLFLAGS = -m 644

LIBTARGET = lib@LANGNAME@std.so lib@LANGNAME@web.so lib@LANGNAME@re.so
LIBSTATIC = lib@LANGNAME@std.a lib@LANGNAME@web.a lib@LANGNAME@re.a
LIBINFO = @LANGNAME@std.ddl @LANGNAME@web.ddl @LANGNAME@re.ddl

SRCS = Array.@EXT@ Strings.@EXT@ IO.@EXT@ System.@EXT@ Regex.@EXT@ \
       Prelude.@EXT@ CGI.@EXT@ Builtins.@EXT@ Dict.@EXT@ Maths.@EXT@ \
       Coercions.@EXT@ Crypto.@EXT@ Time.@EXT@ Logger.@EXT@ \
       DB.@EXT@ Binary.@EXT@ Tuples.@EXT@ Set.@EXT@ \
       Lazy.@EXT@ Parse.@EXT@ WebCommon.@EXT@ \
       HTMLDocument.@EXT@ ElementTree.@EXT@ ElementTreeData.@EXT@ \
       HTMLnesting.@EXT@ XMLentities.@EXT@ HTMLentities.@EXT@ \
       Webapp.@EXT@ Net.@EXT@ HTTP.@EXT@ Mail.@EXT@ TLS.@EXT@ \
       Compress.@EXT@ Testing.@EXT@ Queue.@EXT@ Mime.@EXT@ Reflect.@EXT@ \
       Pickle.@EXT@ KayaDoc.@EXT@

IFACE = Array.ki Strings.ki IO.ki System.ki Regex.ki Prelude.ki \
        CGI.ki Builtins.ki Dict.ki Maths.ki Crypto.ki  \
        Coercions.ki DB.ki Time.ki Logger.ki  Binary.ki Tuples.ki \
        Lazy.ki  Parse.ki Gcrypt.ki Set.ki \
        HTMLDocument.ki ElementTree.ki ElementTreeData.ki \
        HTMLnesting.ki XMLentities.ki HTMLentities.ki \
        Webapp.ki WebCommon.ki Net.ki HTTP.ki Mail.ki TLS.ki \
	Compress.ki Testing.ki Queue.ki Mime.ki Reflect.ki \
        Pickle.ki KayaDoc.ki

STDOBJS = Array.o Strings.o IO.o System.o Prelude.o \
	Builtins.o Dict.o Maths.o Coercions.o \
        DB.o Time.o Logger.o  Binary.o Tuples.o Set.o \
        Lazy.o  Parse.o Testing.o tls_glue.o \
	 binary_glue.o Net.o HTTP.o Mail.o network_glue.o TLS.o \
	Compress.o Queue.o zlib_glue.o Mime.o Reflect.o Pickle.o

WEBOBJS = CGI.o Crypto.o Gcrypt.o gcrypt_glue.o crypto_glue.o \
        HTMLDocument.o ElementTree.o ElementTreeData.o \
        HTMLnesting.o XMLentities.o HTMLentities.o \
        Webapp.o WebCommon.o KayaDoc.o

REOBJS = Regex.o regex_glue.o

OBJS = ${STDOBJS} ${WEBOBJS} ${REOBJS}

#${TARGET}: ${LIBTARGET}
#	${CXX} -fpic ${CXXFLAGS} -shared ${OBJS} -o ${TARGET}

all: ${OBJS}

dynlink: ${LIBTARGET}

#${LIBTARGET}: ${OBJS}
#	../tools/dynlink @LANGNAME@std ${STDOBJS}
#	../tools/dynlink @LANGNAME@web -lssl -lcrypt -lcgi ${WEBOBJS}
#	../tools/dynlink @LANGNAME@re -lpcre ${REOBJS}

install:
	mkdir -p ${DESTDIR}${libdir}
	mkdir -p ${DESTDIR}${IMPORTDIR}
#	install ${TARGET} ${LIBDIR}
#	install ${LIBTARGET} ${LIBSTATIC} ${LIBINFO} ${LIBDIR}
	install ${INSTALLFLAGS} ${IFACE} ${DESTDIR}${IMPORTDIR}
	install ${INSTALLFLAGS} ${OBJS} ${DESTDIR}${IMPORTDIR}

clean:
	rm -f ${OBJS} ${IFACE} ${LIBTARGET} ${TARGET}
	rm -f *.html *.xml
	rm -rf docs

distclean: clean
	rm -f *~ Makefile Net.k
	rm -rf autom4te.cache

Mime.o: Binary.ki Strings.ki IO.ki Regex.ki
Compress.o: Binary.ki zlib_glue.h Strings.ki Regex.ki
Reflect.o: Builtins.ki Prelude.ki
Pickle.o: Prelude.ki Binary.ki Reflect.ki Strings.ki Parse.ki
KayaDoc.o: ElementTree.ki Strings.ki HTMLDocument.ki Time.ki Regex.ki
ElementTreeData.o: Dict.ki
ElementTree.o: XMLentities.ki ElementTreeData.ki Regex.ki
XMLentities.o: HTMLentities.ki Dict.ki Strings.ki Prelude.ki
HTMLentities.o: Dict.ki
HTMLnesting.o: Set.ki
HTMLDocument.o: Prelude.ki System.ki Crypto.ki Regex.ki \
	WebCommon.ki Strings.ki Dict.ki XMLentities.ki ElementTree.ki \
	HTMLnesting.ki Compress.ki
Webapp.o: Prelude.ki System.ki Crypto.ki Regex.ki \
	 WebCommon.ki Strings.ki Dict.ki HTMLDocument.ki Mime.ki
WebCommon.o: Time.ki Dict.ki Regex.ki System.ki IO.ki Mime.ki
Dict.o: Prelude.ki
CGI.o: Prelude.ki System.ki Crypto.ki Regex.ki WebCommon.ki
Strings.o: Prelude.ki Regex.ki
Array.o: Builtins.ki Tuples.ki
Coercions.o: Builtins.ki Array.ki
Crypto.o: crypto_glue.h Gcrypt.ki Regex.ki
Gcrypt.o : gcrypt_glue.h Binary.ki Prelude.ki
Regex.o: regex_glue.h Prelude.ki
Time.o: Builtins.ki Strings.ki Regex.ki
Mail.o: Time.ki
Binary.o: binary_glue.h IO.ki
Logger.o: Prelude.ki IO.ki Regex.ki Time.ki
Lazy.o: Prelude.ki
Parse.o: Prelude.ki Regex.ki Strings.ki
Signal.o: signal_glue.h
Net.o:  TLS.ki Regex.ki network_glue.h
TLS.o: tls_glue.h Binary.ki
HTTP.o: Net.ki WebCommon.ki
Mail.o: Net.ki
Testing.o: Prelude.o IO.o Regex.ki Time.ki
Queue.o: Prelude.o
Set.o: Prelude.o
DB.o: Prelude.ki Time.ki Regex.ki
IO.o: Prelude.ki
System.o: Array.ki

network_glue.o: network_glue.h
zlib_glue.o: zlib_glue.h
tls_glue.o: tls_glue.h network_glue.h
crypto_glue.o: crypto_glue.h
gcrypt_glue.o: gcrypt_glue.h
regex_glue.o: regex_glue.h
webapp_glue.o: webapp_glue.h
binary_glue.o: binary_glue.h
signal_glue.o: signal_glue.h

#Prelude.o: Prelude.ki Builtins.ki Maths.ki Array.ki

Prelude.o : Prelude.@EXT@ Builtins.ki Maths.ki Array.ki Coercions.ki

# This is quite a conservative dependency 
# (ECB 23/6/06) I think it's too conservative. It's a pain during
# development of the compiler, and in the cases where a rebuild of the
# library is needed, due to changes in the compiler, it doesn't catch
# them all. I'm happy to make klibclean instead where necessary, and
# it shouldn't be an issue for users.  
# Builtins.o: ../compiler/kayac ../rts/libkayavm.a

#	${KAYAC} Prelude.k -noprelude -nochase -o Prelude.o -nortchecks -L ../rts_opt -L ../rts -htmldocs

%.o : %.@EXT@
	${KAYAC} $< ${KAYAFLAGS} -deprfail

%.ki : %.o
	@: