]> git.saurik.com Git - wxWidgets.git/blame - src/Makefile.in
Solved a bug in generic wxTreeCtrl whereby CalculatePositions was not completing
[wxWidgets.git] / src / Makefile.in
CommitLineData
c801d85f 1#
a1a2adef 2# wxWindows/Unix main source makefile
c801d85f
KB
3#
4# Copyright 1998, Markus Holzhem and Robert Roebling
5#
6
a1a2adef 7# wxWindows base directory
c801d85f
KB
8WXBASEDIR=@WXBASEDIR@
9
10# set the OS type for compilation
11OS=@OS@
12
13# compile a library only
14RULE=gslib
15
16# define common stuff
84b46c35
GL
17IODBC_C_SRC=\
18 iodbc/catalog.c \
19 iodbc/connect.c \
20 iodbc/dlf.c \
21 iodbc/dlproc.c \
22 iodbc/execute.c \
23 iodbc/fetch.c \
24 iodbc/hdbc.c \
25 iodbc/henv.c \
26 iodbc/herr.c \
27 iodbc/hstmt.c \
28 iodbc/info.c \
29 iodbc/itrace.c \
30 iodbc/main.c \
31 iodbc/misc.c \
32 iodbc/prepare.c \
33 iodbc/result.c
c801d85f 34
a1a2adef
RR
35# include gtk.inc, qt.inc or motif.inc here
36include @MAKEINCLUDE@
c801d85f 37
f3cb6592
RR
38# determine library names
39STATIC_LIBRARY=lib$(LIB_TARGET).a
40SHARED_LIBRARY=lib$(LIB_TARGET).so.$(LIB_MAJOR).$(LIB_MINOR)
41
a1a2adef 42LIB_CPP_ALL_SRC=$(LIB_CPP_SRC) @GTK_JOYSTICK@ @UNIX_THREAD@
c801d85f 43
76153302 44LIB_C_ALL_SRC=$(LIB_C_SRC) @IODBC_C_SRC@ parser.c
6de97a3b 45
c801d85f
KB
46#define library objects
47LIB_OBJ=\
a1a2adef 48 $(LIB_CPP_ALL_SRC:.cpp=.o) \
6de97a3b 49 $(LIB_C_ALL_SRC:.c=.o)
c801d85f
KB
50
51all::
6de97a3b
RR
52 @if test ! -d gtk; then mkdir gtk; fi
53 @if test ! -d qt; then mkdir qt; fi
54 @if test ! -d motif; then mkdir motif; fi
892dbe99 55 @if test ! -d motif/xmcombo; then mkdir motif/xmcombo; fi
6de97a3b
RR
56 @if test ! -d common; then mkdir common; fi
57 @if test ! -d generic; then mkdir generic; fi
58 @if test ! -d png; then mkdir png; fi
59 @if test ! -d zlib; then mkdir zlib; fi
6de97a3b 60 @if test ! -d iodbc; then mkdir iodbc; fi
c801d85f 61
c98f0421 62install::
f3cb6592 63 @echo " "
c98f0421 64 @echo "Installing library files and headers.."
f3cb6592 65 @echo " "
c98f0421
RR
66 @echo " Creating directories.."
67 @$(WXBASEDIR)/mkinstalldirs \
d8c83875
RR
68 $(includedir)/wx \
69 $(includedir)/wx/gtk \
70 $(includedir)/wx/common \
71 $(includedir)/wx/generic \
72 $(includedir)/wx/protocol \
cb43b372 73 $(libdir)/wx/include/wx/gtk \
d8c83875
RR
74 $(libdir) \
75 $(bindir)
c98f0421
RR
76 @echo " Copying headers from /include/wx"
77 @cd $(WXBASEDIR)/include/wx ; \
a665764c 78 $(INSTALL) -d $(includedir)/wx ; \
c98f0421 79 for f in *.h ; do \
f3cb6592
RR
80 rm -f $(includedir)/wx/$$f ; \
81 $(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
f04371f0
RR
82 done ; \
83 for f in *.cpp ; do \
84 rm -f $(includedir)/wx/$$f ; \
85 $(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
c98f0421
RR
86 done
87 @echo " Copying headers from /include/wx/gtk"
88 @cd $(WXBASEDIR)/include/wx/gtk ; \
a665764c 89 $(INSTALL) -d $(includedir)/wx/gtk ; \
c98f0421 90 for f in *.h ; do \
f3cb6592
RR
91 rm -f $(includedir)/wx/gtk/$$f ; \
92 $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
f04371f0 93 done
c98f0421
RR
94 @echo " Copying headers from /include/wx/generic"
95 @cd $(WXBASEDIR)/include/wx/generic ; \
a665764c 96 $(INSTALL) -d $(includedir)/wx/generic ; \
c98f0421 97 for f in *.h ; do \
f3cb6592
RR
98 rm -f $(includedir)/wx/generic/$$f ; \
99 $(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
c98f0421 100 done
c058d771
RR
101 @echo " Copying headers from /include/wx/protocol"
102 @cd $(WXBASEDIR)/include/wx/protocol ; \
103 for f in *.h ; do \
104 rm -f $(includedir)/wx/protocol/$$f ; \
105 $(INSTALL_DATA) $$f $(includedir)/wx/protocol/$$f ; \
106 done
cb43b372 107 @echo " Moving setup.h to library path"
e52f60e6
RR
108 @cd $(WXBASEDIR)/src ; \
109 $(INSTALL) -d $(libdir)/wx/include/wx/gtk ;\
cb43b372 110 mv $(includedir)/wx/gtk/setup.h $(libdir)/wx/include/wx/gtk/setup.h ;
f3cb6592 111 @echo " Copying wx-config"
e52f60e6
RR
112 @cd $(WXBASEDIR)/src ; \
113 $(INSTALL) -d $(bindir) ; \
f3cb6592 114 rm -f $(bindir)/wx-config ; \
e52f60e6 115 $(INSTALL_PROGRAM) $(WXBASEDIR)/wx-config $(bindir)/wx-config
f3cb6592 116 @echo " Copying static library"
e52f60e6 117 @cd $(WXBASEDIR)/src ; \
f3cb6592 118 rm -f $(libdir)/$(STATIC_LIBRARY) ; \
e52f60e6 119 $(INSTALL_DATA) $(WXBASEDIR)/lib/$(OS)/$(STATIC_LIBRARY) $(libdir)/$(STATIC_LIBRARY)
8fdca65c 120 @if test -f $(WXBASEDIR)/lib/$(OS)/$(SHARED_LIBRARY) ; then \
cb43b372 121 echo " Copying shared library" ; \
cb43b372 122 rm -f $(libdir)/lib$(LIB_TARGET).so* ; \
e52f60e6 123 $(INSTALL_PROGRAM) $(WXBASEDIR)/lib/$(OS)/$(SHARED_LIBRARY) $(libdir)/$(SHARED_LIBRARY) ; \
d8c83875
RR
124 $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so.$(LIB_MAJOR) ; \
125 $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so ; \
cb43b372
RR
126 echo " " ; \
127 echo " You may have to run ldconfig!" ; \
128 echo " " ; \
d8c83875 129 fi
f3cb6592 130 @echo " "
cb43b372 131 @echo "Installation complete."
f3cb6592
RR
132 @echo " "
133
c801d85f
KB
134clean::
135 $(RM) -rf gtk
a1a2adef
RR
136 $(RM) -rf qt
137 $(RM) -rf motif
c801d85f
KB
138 $(RM) -rf common
139 $(RM) -rf generic
140 $(RM) -rf png
141 $(RM) -rf zlib
1a6944fd 142 $(RM) -rf iodbc
6de97a3b 143 @$(RM) lexer.c parser.c
c801d85f
KB
144
145#additional things needed for compile
01111366 146ADD_COMPILE=
c801d85f
KB
147
148# include the definitions now
149include ../../template.mak
6de97a3b
RR
150
151# things for the prolog stuff
152
153parser.c: ../common/parser.y lexer.c
154 @if test ! -f parser.y; then \
155 cp -f ../common/parser.y . ; \
156 fi
157 @$(YACC) parser.y
158 @sed -e "s/y.tab.c/parser.y/g" < y.tab.c | \
159 sed -e "s/BUFSIZ/5000/g" | \
160 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
161 sed -e "s/yy/PROIO_yy/g" | \
162 sed -e "s/input/PROIO_input/g" | \
163 sed -e "s/unput/PROIO_unput/g" > parser.c
164 @$(RM) y.tab.c
165 @$(RM) parser.y
166
167lexer.c: ../common/lexer.l
168 @if test ! -f lexer.l; then \
169 cp -f ../common/lexer.l . ;\
170 fi
171 @$(LEX) lexer.l
172 @sed -e "s/lex.yy.c/lexer.l/g" < lex.yy.c | \
173 sed -e "s/yy/PROIO_yy/g" | \
174 sed -e "s/input/PROIO_input/g" | \
175 sed -e "s/unput/PROIO_unput/g" > lexer.c
176 @$(RM) lex.yy.c
177 @$(RM) lexer.l
178
179clean::
a665764c 180