Initial release of the message compiler.
[wine/wine-kai.git] / tools / wmc / Makefile.in
blob13fee710d7714e62afedf1b1ef31077e76aa9872
1 DEFS = -D__WINE__
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR = @srcdir@
5 VPATH = @srcdir@
6 YACCOPT = #-v
8 PROGRAMS = wmc@PROGEXT@
9 MODULE = none
11 C_SRCS = \
12 lang.c \
13 mcl.c \
14 utils.c \
15 wmc.c \
16 write.c
18 EXTRA_SRCS = mcy.y
19 EXTRA_OBJS = y.tab.o
21 all: check_unicode $(PROGRAMS)
23 depend: y.tab.h
25 @MAKE_RULES@
27 wmc@PROGEXT@: $(OBJS) $(TOPOBJDIR)/unicode/unicode.o
28 $(CC) $(CFLAGS) -o wmc@PROGEXT@ $(OBJS) $(TOPOBJDIR)/unicode/unicode.o $(LEXLIB)
30 $(TOPOBJDIR)/unicode/unicode.o check_unicode:
31 cd $(TOPSRCDIR)/unicode && $(MAKE)
33 y.tab.c y.tab.h: mcy.y
34 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
36 clean::
37 $(RM) y.tab.c y.tab.h y.output
39 install:: $(PROGRAMS)
40 [ -d $(bindir) ] || $(MKDIR) $(bindir)
41 [ -d $(mandir)/man$(prog_manext) ] || $(MKDIR) $(mandir)/man$(prog_manext)
42 $(INSTALL_DATA) wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
43 $(INSTALL_PROGRAM) wmc $(bindir)/wmc
45 uninstall::
46 $(RM) $(bindir)/wmc $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
48 ### Dependencies: