]> git.saurik.com Git - wxWidgets.git/blob - src/Makefile.in
It's now possible to drag a listbox filled with entries
[wxWidgets.git] / src / Makefile.in
1 #
2 # wxWindows/Unix main source makefile
3 #
4 # Copyright 1998, Markus Holzhem and Robert Roebling
5 #
6
7 # wxWindows base directory
8 WXBASEDIR=@WXBASEDIR@
9
10 # set the OS type for compilation
11 OS=@OS@
12
13 # compile a library only
14 RULE=gslib
15
16 # define common stuff
17
18 # include gtk.inc, qt.inc or motif.inc here
19 include @MAKEINCLUDE@
20
21 # determine library names
22 STATIC_LIBRARY=lib$(LIB_TARGET).a
23 SHARED_LIBRARY=lib$(LIB_TARGET).so.$(LIB_MAJOR).$(LIB_MINOR)
24
25 LIB_CPP_ALL_SRC=$(LIB_CPP_SRC) @GTK_JOYSTICK@ @UNIX_THREAD@
26
27 LIB_C_ALL_SRC=$(LIB_C_SRC) parser.c
28
29 #define library objects
30 LIB_OBJ=\
31 $(LIB_CPP_ALL_SRC:.cpp=.o) \
32 $(LIB_C_ALL_SRC:.c=.o)
33
34 all::
35 @if test ! -d gtk; then mkdir gtk; fi
36 @if test ! -d qt; then mkdir qt; fi
37 @if test ! -d motif; then mkdir motif; fi
38 @if test ! -d common; then mkdir common; fi
39 @if test ! -d generic; then mkdir generic; fi
40 @if test ! -d png; then mkdir png; fi
41 @if test ! -d zlib; then mkdir zlib; fi
42 @if test ! -d gdk_imlib; then mkdir gdk_imlib; fi
43 @if test ! -d iodbc; then mkdir iodbc; fi
44
45 install::
46 @echo " "
47 @echo "Installing library files and headers.."
48 @echo " "
49 @echo " Creating directories.."
50 @$(WXBASEDIR)/mkinstalldirs \
51 /usr/local/include/wx \
52 /usr/local/include/wx/gtk \
53 /usr/local/include/wx/common \
54 /usr/local/include/wx/protocol \
55 /usr/local/include/wx/generic
56 @echo " Copying headers from /include/wx"
57 @cd $(WXBASEDIR)/include/wx ; \
58 for f in *.h ; do \
59 rm -f $(includedir)/wx/$$f ; \
60 $(INSTALL_DATA) $$f $(includedir)/wx/$$f ; \
61 done
62 @echo " Copying headers from /include/wx/gtk"
63 @cd $(WXBASEDIR)/include/wx/gtk ; \
64 for f in *.h ; do \
65 rm -f $(includedir)/wx/gtk/$$f ; \
66 $(INSTALL_DATA) $$f $(includedir)/wx/gtk/$$f ; \
67 done
68 @echo " Copying headers from /include/wx/generic"
69 @cd $(WXBASEDIR)/include/wx/generic ; \
70 for f in *.h ; do \
71 rm -f $(includedir)/wx/generic/$$f ; \
72 $(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
73 done
74 @echo " Copying headers from /include/wx/protocol"
75 @cd $(WXBASEDIR)/include/wx/protocol ; \
76 for f in *.h ; do \
77 rm -f $(includedir)/wx/protocol/$$f ; \
78 $(INSTALL_DATA) $$f $(includedir)/wx/protocol/$$f ; \
79 done
80 @echo " Copying wx-config"
81 @cd $(WXBASEDIR) ; \
82 rm -f $(bindir)/wx-config ; \
83 $(INSTALL_PROGRAM) wx-config $(bindir)/wx-config
84 @echo " Copying static library"
85 @cd $(WXBASEDIR)/lib/$(OS) ; \
86 rm -f $(libdir)/$(STATIC_LIBRARY) ; \
87 $(INSTALL_DATA) $(STATIC_LIBRARY) $(libdir)/$(STATIC_LIBRARY)
88 @echo " Copying shared library"
89 @cd $(WXBASEDIR)/lib/$(OS) ; \
90 rm -f $(libdir)/$(SHARED_LIBRARY) ; \
91 $(INSTALL_PROGRAM) $(SHARED_LIBRARY) $(libdir)/$(SHARED_LIBRARY) ; \
92 $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so.$(LIB_MAJOR) ; \
93 $(LN_S) $(SHARED_LIBRARY) $(libdir)/lib$(LIB_TARGET).so
94 @echo " "
95 @echo "Installation complete. You may have to run ldconfig!"
96 @echo " "
97
98
99 clean::
100 $(RM) -rf gtk
101 $(RM) -rf qt
102 $(RM) -rf motif
103 $(RM) -rf common
104 $(RM) -rf generic
105 $(RM) -rf png
106 $(RM) -rf zlib
107 $(RM) -rf gdk_imlib
108 $(RM) -rf iodbc
109 @$(RM) lexer.c parser.c
110
111 #additional things needed for compile
112 ADD_COMPILE= \
113 -DHAVE_LIBPNG -DDJPEG_PROG=\"\" -DCJPEG_PROG=\"\"
114
115 # include the definitions now
116 include ../../template.mak
117
118 # things for the prolog stuff
119
120 parser.c: ../common/parser.y lexer.c
121 @if test ! -f parser.y; then \
122 cp -f ../common/parser.y . ; \
123 fi
124 @$(YACC) parser.y
125 @sed -e "s/y.tab.c/parser.y/g" < y.tab.c | \
126 sed -e "s/BUFSIZ/5000/g" | \
127 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
128 sed -e "s/yy/PROIO_yy/g" | \
129 sed -e "s/input/PROIO_input/g" | \
130 sed -e "s/unput/PROIO_unput/g" > parser.c
131 @$(RM) y.tab.c
132 @$(RM) parser.y
133
134 lexer.c: ../common/lexer.l
135 @if test ! -f lexer.l; then \
136 cp -f ../common/lexer.l . ;\
137 fi
138 @$(LEX) lexer.l
139 @sed -e "s/lex.yy.c/lexer.l/g" < lex.yy.c | \
140 sed -e "s/yy/PROIO_yy/g" | \
141 sed -e "s/input/PROIO_input/g" | \
142 sed -e "s/unput/PROIO_unput/g" > lexer.c
143 @$(RM) lex.yy.c
144 @$(RM) lexer.l
145
146 clean::
147