]> git.saurik.com Git - wxWidgets.git/blame - src/msw/Makefile.am
1. fixes for non-Posix sh in configure
[wxWidgets.git] / src / msw / Makefile.am
CommitLineData
5a92d200
RR
1## Purpose: The automake makefile for wxWindows (src/msw subdirectory)
2## Author: Phil Blecker, Vadim Zeitlin
3## Version: $Id$
4##
5## Process this file with automake to produce Makefile.in
6
7SUFFIXES = .cpp .c
8
9DEFS = $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
10LIBS = $(GUILIBS)
11
12VPATH = .:${srcdir}:${srcdir}/../common:${srcdir}/../generic:${EXTRA_VPATH}
13
14EXTRA_DIST = "${srcdir}/../common ${srcdir}/../generic ${srcdir}"
15
16lib_LTLIBRARIES = @WX_LIBRARY_NAME@
17EXTRA_LTLIBRARIES = libwx_gtk.la libwx_motif.la libwx_msw.la
18
19# these are the common files which always make part of the library
20libwx_msw_la_SOURCES = \
21\
22 extended.c \
23 parser.c \
24\
25 list.cpp \
26 object.cpp \
27\
28 wincmn.cpp \
29 window.cpp
30
31# these are the sources which we build by our own rules
32#
33# TODO: parser.y can be included into SOURCES, but for the sake of my life I
34# don't know where to put lexer.l - if I put it in the sources too,
35# automake tries to build lexer.lo... and fails, of course. (VZ)
36BUILT_SOURCES = parser.c lexer.c
37parser.c: $(srcdir)/../common/parser.y lexer.c
38 $(YACC) $(srcdir)/../common/parser.y
39 @sed -e "s;$(srcdir)/../common/y.tab.c;parser.y;g" < y.tab.c | \
40 sed -e "s/BUFSIZ/5000/g" | \
41 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
42 sed -e "s/yy/PROIO_yy/g" | \
43 sed -e "s/input/PROIO_input/g" | \
44 sed -e "s/unput/PROIO_unput/g" > parser.c
45 @$(RM) y.tab.c
46
47lexer.c: $(srcdir)/../common/lexer.l
48 $(LEX) $(srcdir)/../common/lexer.l
49 @sed -e "s;$(srcdir)/../common/lex.yy.c;lexer.l;g" < lex.yy.c | \
50 sed -e "s/yy/PROIO_yy/g" | \
51 sed -e "s/input/PROIO_input/g" | \
52 sed -e "s/unput/PROIO_unput/g" > lexer.c
53 @$(RM) lex.yy.c
54
55libwx_msw_la_LDFLAGS = -rpath @libdir@ \
56 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
57 -release $(LT_RELEASE)
58libwx_msw_la_LIBADD = $(LTLIBOBJS)
59libwx_msw_la_DEPENDENCIES = $(libwx_msw_la_LIBADD) lexer.l parser.y