2002-07-16 05:20:45 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
EXEEXT = @EXEEXT@
|
|
|
|
|
|
|
|
PROGRAMS = widl$(EXEEXT)
|
2005-10-06 18:10:01 +02:00
|
|
|
MANPAGES = widl.man
|
2002-07-16 05:20:45 +02:00
|
|
|
MODULE = none
|
|
|
|
|
|
|
|
C_SRCS = \
|
2005-02-23 21:31:07 +01:00
|
|
|
client.c \
|
2005-01-06 21:45:21 +01:00
|
|
|
hash.c \
|
2002-07-16 05:20:45 +02:00
|
|
|
header.c \
|
|
|
|
proxy.c \
|
2005-02-23 21:31:07 +01:00
|
|
|
server.c \
|
2005-12-08 12:52:13 +01:00
|
|
|
typegen.c \
|
2004-01-07 05:21:27 +01:00
|
|
|
typelib.c \
|
2002-07-16 05:20:45 +02:00
|
|
|
utils.c \
|
2005-01-06 21:45:21 +01:00
|
|
|
widl.c \
|
|
|
|
write_msft.c
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
EXTRA_SRCS = parser.y parser.l
|
2005-09-28 20:17:08 +02:00
|
|
|
EXTRA_OBJS = parser.tab.o @LEX_OUTPUT_ROOT@.o
|
2002-07-16 05:20:45 +02:00
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2003-05-01 05:16:21 +02:00
|
|
|
widl$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_port $(LEXLIB) $(LDFLAGS)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
parser.tab.c parser.tab.h: parser.y
|
|
|
|
$(BISON) -d -t $(SRCDIR)/parser.y -o parser.tab.c
|
2002-07-16 05:20:45 +02:00
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
2005-09-28 20:17:08 +02:00
|
|
|
parser.tab.h: parser.tab.c
|
|
|
|
parser.tab.o: parser.tab.h
|
2002-12-15 02:19:53 +01:00
|
|
|
|
2002-07-16 05:20:45 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.c: parser.l
|
2006-01-03 12:16:05 +01:00
|
|
|
$(LEX) $(SRCDIR)/parser.l
|
2002-07-16 05:20:45 +02:00
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.o: parser.tab.h
|
2002-08-10 02:03:08 +02:00
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
install:: $(PROGRAMS) $(MANPAGES)
|
2006-02-14 13:51:38 +01:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
$(INSTALL_PROGRAM) widl$(EXEEXT) $(DESTDIR)$(bindir)/widl$(EXEEXT)
|
|
|
|
$(INSTALL_DATA) widl.man $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
uninstall::
|
2006-02-14 13:51:38 +01:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/widl$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
### Dependencies:
|