Fixed potential crash in fd_dump function.
[wine/multimedia.git] / tools / widl / Makefile.in
blobdf682580cd7fe7773a71459dec8ad0b78f4a61e7
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 LEXOPT = -Cf #-w -b
6 YACCOPT = #-v
7 EXEEXT = @EXEEXT@
9 PROGRAMS = widl$(EXEEXT)
10 MODULE = none
12 C_SRCS = \
13 hash.c \
14 header.c \
15 proxy.c \
16 typelib.c \
17 utils.c \
18 widl.c \
19 write_msft.c
21 EXTRA_SRCS = parser.y parser.l
22 EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
24 all: $(PROGRAMS)
26 @MAKE_RULES@
28 widl$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
29 $(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_port $(LEXLIB) $(LDFLAGS)
31 y.tab.c y.tab.h: parser.y
32 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
34 # hack to allow parallel make
35 y.tab.h: y.tab.c
36 y.tab.o: y.tab.h
38 @LEX_OUTPUT_ROOT@.c: parser.l
39 $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
41 @LEX_OUTPUT_ROOT@.o: y.tab.h
43 install:: $(PROGRAMS)
44 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
45 $(INSTALL_PROGRAM) widl$(EXEEXT) $(bindir)/widl$(EXEEXT)
46 $(INSTALL_DATA) $(SRCDIR)/widl.man $(mandir)/man$(prog_manext)/widl.$(prog_manext)
48 uninstall::
49 $(RM) $(bindir)/widl$(EXEEXT) $(mandir)/man$(prog_manext)/widl.$(prog_manext)
51 ### Dependencies: