Link the tools and the server against libwine so we can use the
[wine/multimedia.git] / tools / wmc / Makefile.in
blob025fff5a15b1a18559f3c71f51ea862863bad457
1 DEFS = -D__WINE__
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR = @srcdir@
5 VPATH = @srcdir@
6 YACCOPT = #-v
8 PROGRAMS = wmc
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: $(PROGRAMS)
23 mcl.o: y.tab.h
25 @MAKE_RULES@
27 wmc: $(OBJS)
28 $(CC) $(CFLAGS) -o wmc $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
30 y.tab.c y.tab.h: mcy.y
31 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
33 clean::
34 $(RM) y.tab.c y.tab.h y.output
36 install:: $(PROGRAMS)
37 [ -d $(bindir) ] || $(MKDIR) $(bindir)
38 [ -d $(mandir)/man$(prog_manext) ] || $(MKDIR) $(mandir)/man$(prog_manext)
39 $(INSTALL_DATA) $(SRCDIR)/wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
40 $(INSTALL_PROGRAM) wmc $(bindir)/wmc
42 uninstall::
43 $(RM) $(bindir)/wmc $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
45 ### Dependencies: