]>
Commit | Line | Data |
---|---|---|
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 |
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 | ||
a1a2adef RR |
18 | # include gtk.inc, qt.inc or motif.inc here |
19 | include @MAKEINCLUDE@ | |
c801d85f | 20 | |
a1a2adef | 21 | LIB_CPP_ALL_SRC=$(LIB_CPP_SRC) @GTK_JOYSTICK@ @UNIX_THREAD@ |
c801d85f | 22 | |
6de97a3b RR |
23 | LIB_C_ALL_SRC=$(LIB_C_SRC) parser.c |
24 | ||
c801d85f KB |
25 | #define library objects |
26 | LIB_OBJ=\ | |
a1a2adef | 27 | $(LIB_CPP_ALL_SRC:.cpp=.o) \ |
6de97a3b | 28 | $(LIB_C_ALL_SRC:.c=.o) |
c801d85f KB |
29 | |
30 | all:: | |
6de97a3b RR |
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 | |
c801d85f KB |
40 | |
41 | clean:: | |
42 | $(RM) -rf gtk | |
a1a2adef RR |
43 | $(RM) -rf qt |
44 | $(RM) -rf motif | |
c801d85f KB |
45 | $(RM) -rf common |
46 | $(RM) -rf generic | |
47 | $(RM) -rf png | |
48 | $(RM) -rf zlib | |
49 | $(RM) -rf gdk_imlib | |
1a6944fd | 50 | $(RM) -rf iodbc |
6de97a3b | 51 | @$(RM) lexer.c parser.c |
c801d85f KB |
52 | |
53 | #additional things needed for compile | |
54 | ADD_COMPILE= \ | |
7c351dad | 55 | -DHAVE_LIBPNG -DDJPEG_PROG=\"\" -DCJPEG_PROG=\"\" |
c801d85f KB |
56 | |
57 | # include the definitions now | |
58 | include ../../template.mak | |
6de97a3b RR |
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 |