2 # wxWindows/Unix main source makefile
4 # Copyright 1998, Markus Holzhem and Robert Roebling
7 # wxWindows base directory
10 # set the OS type for compilation
13 # compile a library only
18 # include gtk.inc, qt.inc or motif.inc here
21 LIB_CPP_ALL_SRC=$(LIB_CPP_SRC) @GTK_JOYSTICK@ @UNIX_THREAD@
23 LIB_C_ALL_SRC=$(LIB_C_SRC) parser.c
25 #define library objects
27 $(LIB_CPP_ALL_SRC:.cpp=.o) \
28 $(LIB_C_ALL_SRC:.c=.o)
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
51 @$(RM) lexer.c parser.c
53 #additional things needed for compile
55 -DHAVE_LIBPNG -DDJPEG_PROG=\"\" -DCJPEG_PROG=\"\"
57 # include the definitions now
58 include ../../template.mak
60 # things for the prolog stuff
62 parser.c: ../common/parser.y lexer.c
63 @if test ! -f parser.y; then \
64 cp -f ../common/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
76 lexer.c: ../common/lexer.l
77 @if test ! -f lexer.l; then \
78 cp -f ../common/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