]> git.saurik.com Git - wxWidgets.git/blob - src/Makefile.in
Removed redundant makefiles and AIAI icons. Changed dynamic sample source name from
[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 LIB_CPP_ALL_SRC=$(LIB_CPP_SRC) @GTK_JOYSTICK@ @UNIX_THREAD@
22
23 LIB_C_ALL_SRC=$(LIB_C_SRC) parser.c
24
25 #define library objects
26 LIB_OBJ=\
27 $(LIB_CPP_ALL_SRC:.cpp=.o) \
28 $(LIB_C_ALL_SRC:.c=.o)
29
30 all::
31 @if test ! -d gtk; then mkdir gtk; fi
32 @if test ! -d qt; then mkdir qt; fi
33 @if test ! -d motif; then mkdir motif; fi
34 @if test ! -d common; then mkdir common; fi
35 @if test ! -d generic; then mkdir generic; fi
36 @if test ! -d png; then mkdir png; fi
37 @if test ! -d zlib; then mkdir zlib; fi
38 @if test ! -d gdk_imlib; then mkdir gdk_imlib; fi
39 @if test ! -d iodbc; then mkdir iodbc; fi
40
41 clean::
42 $(RM) -rf gtk
43 $(RM) -rf qt
44 $(RM) -rf motif
45 $(RM) -rf common
46 $(RM) -rf generic
47 $(RM) -rf png
48 $(RM) -rf zlib
49 $(RM) -rf gdk_imlib
50 $(RM) -rf iodbc
51 @$(RM) lexer.c parser.c
52
53 #additional things needed for compile
54 ADD_COMPILE= \
55 -DHAVE_LIBPNG -DDJPEG_PROG=\"\" -DCJPEG_PROG=\"\"
56
57 # include the definitions now
58 include ../../template.mak
59
60 # things for the prolog stuff
61
62 parser.c: ../common/parser.y lexer.c
63 @if test ! -f parser.y; then \
64 cp -f ../common/parser.y . ; \
65 fi
66 @$(YACC) parser.y
67 @sed -e "s/y.tab.c/parser.y/g" < y.tab.c | \
68 sed -e "s/BUFSIZ/5000/g" | \
69 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
70 sed -e "s/yy/PROIO_yy/g" | \
71 sed -e "s/input/PROIO_input/g" | \
72 sed -e "s/unput/PROIO_unput/g" > parser.c
73 @$(RM) y.tab.c
74 @$(RM) parser.y
75
76 lexer.c: ../common/lexer.l
77 @if test ! -f lexer.l; then \
78 cp -f ../common/lexer.l . ;\
79 fi
80 @$(LEX) lexer.l
81 @sed -e "s/lex.yy.c/lexer.l/g" < lex.yy.c | \
82 sed -e "s/yy/PROIO_yy/g" | \
83 sed -e "s/input/PROIO_input/g" | \
84 sed -e "s/unput/PROIO_unput/g" > lexer.c
85 @$(RM) lex.yy.c
86 @$(RM) lexer.l
87
88 clean::
89