/[webpac]/openisis/current/tcl/tkhtml/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /openisis/current/tcl/tkhtml/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 237 - (show annotations)
Mon Mar 8 17:43:12 2004 UTC (18 years, 2 months ago) by dpavlin
File size: 3463 byte(s)
initial import of openisis 0.9.0 vendor drop

1 # manually generated by KriP
2 # Do Edit!
3
4 ifeq (,$(TKHTML))
5 TKHTML=/opt/TclTk/htmlwidget
6 endif
7 S=$(TKHTML)/src
8
9 ifeq (,$(WIN32))
10 include ../make.tcltk
11 OSDEF=-DOS_UNIX=1 -DOS_WIN=0
12 PIC=-fPIC
13 else
14 include ../../make.mingw
15 include ../make.tcltk.mingw
16 OSDEF=-DOS_UNIX=0 -DOS_WIN=1
17 endif
18
19 CC=gcc
20 RANLIB=ranlib
21 ifeq ($(NDEBUG),)
22 DBG=-g
23 else
24 DBG=-DNDEBUG
25 endif
26
27 CPPFLAGS=$(TCL_DEFS) $(OSDEF) -I. $(TCL_INCLUDE_SPEC) $(DBG)
28 CFLAGS=-O2 -Wall -W -Wshadow -pedantic -Wno-long-long
29
30
31 ifeq (,$(TCL_SHLIB_LD))
32 all: headers libtkhtml.a
33 else
34 all: headers libtkhtml.a libtkhtml.so pkgIndex.tcl
35 endif
36
37 # use native compiler
38 makeheaders: $(TKHTML)/tools/makeheaders.c
39 : this may fail if cc uses the cross compilers as
40 : try to run it manually
41 /usr/bin/cc -o makeheaders $(TKHTML)/tools/makeheaders.c
42
43 htmltokens.c: $S/tokenlist.txt $(TKHTML)/tools/maketokens.tcl
44 tclsh $(TKHTML)/tools/maketokens.tcl $S/tokenlist.txt >htmltokens.c
45
46 pkgIndex.tcl: libtkhtml.so
47 echo 'pkg_mkIndex . libtkhtml.so' | tclsh
48
49 # variants of the builtin rules
50 %.o: $S/%.c
51 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
52
53 sh%.o: $S/%.c
54 $(CC) -c $(CPPFLAGS) $(TCL_SHLIB_CFLAGS) $(CFLAGS) -o $@ $<
55
56 sh%.o: %.c
57 $(CC) -c $(CPPFLAGS) $(TCL_SHLIB_CFLAGS) $(CFLAGS) -o $@ $<
58
59 # deps
60 htmlcmd.o: $S/htmlcmd.c htmlcmd.h
61 htmldraw.o: $S/htmldraw.c htmldraw.h
62 htmlform.o: $S/htmlform.c htmlform.h
63 htmlimage.o: $S/htmlimage.c htmlimage.h
64 htmlindex.o: $S/htmlindex.c htmlindex.h
65 htmllayout.o: $S/htmllayout.c htmllayout.h
66 htmlparse.o: $S/htmlparse.c htmlparse.h
67 htmlsizer.o: $S/htmlsizer.c htmlsizer.h
68 htmltable.o: $S/htmltable.c htmltable.h
69 htmltest.o: $S/htmltest.c htmltest.h
70 htmltokens.o: htmltokens.c htmltokens.h
71 htmlurl.o: $S/htmlurl.c htmlurl.h
72 htmlwidget.o: $S/htmlwidget.c htmlwidget.h
73 shhtmlcmd.o: $S/htmlcmd.c htmlcmd.h
74 shhtmldraw.o: $S/htmldraw.c htmldraw.h
75 shhtmlform.o: $S/htmlform.c htmlform.h
76 shhtmlimage.o: $S/htmlimage.c htmlimage.h
77 shhtmlindex.o: $S/htmlindex.c htmlindex.h
78 shhtmllayout.o: $S/htmllayout.c htmllayout.h
79 shhtmlparse.o: $S/htmlparse.c htmlparse.h
80 shhtmlsizer.o: $S/htmlsizer.c htmlsizer.h
81 shhtmltable.o: $S/htmltable.c htmltable.h
82 shhtmltest.o: $S/htmltest.c htmltest.h
83 shhtmltokens.o: htmltokens.c htmltokens.h
84 shhtmlurl.o: $S/htmlurl.c htmlurl.h
85 shhtmlwidget.o: $S/htmlwidget.c htmlwidget.h
86
87 libtkhtml.a: htmlcmd.o htmldraw.o htmlform.o htmlimage.o htmlindex.o htmllayout.o htmlparse.o htmlsizer.o htmltable.o htmltest.o htmlurl.o htmlwidget.o htmltokens.o
88 ar cr $@ $^
89 ranlib $@
90
91 libtkhtml.so: shhtmlcmd.o shhtmldraw.o shhtmlform.o shhtmlimage.o shhtmlindex.o shhtmllayout.o shhtmlparse.o shhtmlsizer.o shhtmltable.o shhtmltest.o shhtmlurl.o shhtmlwidget.o shhtmltokens.o
92 strip $^
93 $(TCL_SHLIB_LD) -o $@ $^ \
94 $(TCL_LIB_SPEC) $(TK_LIB_SPEC) $(TCL_LD_SEARCH_FLAGS) $(TK_LIBS)
95
96 headers: makeheaders htmltokens.c
97 ./makeheaders $S/htmlcmd.c:htmlcmd.h $S/htmldraw.c:htmldraw.h $S/htmlform.c:htmlform.h $S/htmlimage.c:htmlimage.h $S/htmlindex.c:htmlindex.h $S/htmllayout.c:htmllayout.h $S/htmlparse.c:htmlparse.h $S/htmlsizer.c:htmlsizer.h $S/htmltable.c:htmltable.h $S/htmltest.c:htmltest.h $S/htmlurl.c:htmlurl.h $S/htmlwidget.c:htmlwidget.h htmltokens.c $S/html.h
98
99
100 clean:
101 rm -f makeheaders *.o *.h *.a *.so htmltokens.c pkgIndex.tcl
102 rm -rf srcdir
103
104 install: all
105 cp libtkhtml.a $(TK_PREFIX)/lib
106 ifneq (,$(TCL_SHLIB_LD))
107 [ -d $(TK_PREFIX)/lib/Tkhtml ] || mkdir $(TK_PREFIX)/lib/Tkhtml
108 cp libtkhtml.so $(TK_PREFIX)/lib/Tkhtml
109 cp pkgIndex.tcl $(TK_PREFIX)/lib/Tkhtml
110 endif
111

  ViewVC Help
Powered by ViewVC 1.1.26