2002-07-16 05:20:45 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
LEXOPT = -Cf #-w -b
|
|
|
|
YACCOPT = #-v
|
|
|
|
EXEEXT = @EXEEXT@
|
|
|
|
|
|
|
|
PROGRAMS = widl$(EXEEXT)
|
|
|
|
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 \
|
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
|
|
|
|
EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
|
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
@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
|
|
|
|
|
|
|
y.tab.c y.tab.h: parser.y
|
|
|
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
|
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
|
|
|
y.tab.h: y.tab.c
|
|
|
|
y.tab.o: y.tab.h
|
|
|
|
|
2002-07-16 05:20:45 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.c: parser.l
|
|
|
|
$(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
|
|
|
|
|
2002-08-10 02:03:08 +02:00
|
|
|
@LEX_OUTPUT_ROOT@.o: y.tab.h
|
|
|
|
|
2002-07-16 05:20:45 +02:00
|
|
|
install:: $(PROGRAMS)
|
2004-03-09 04:49:39 +01:00
|
|
|
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
|
2002-07-16 05:20:45 +02:00
|
|
|
$(INSTALL_PROGRAM) widl$(EXEEXT) $(bindir)/widl$(EXEEXT)
|
2004-03-09 04:49:39 +01:00
|
|
|
$(INSTALL_DATA) $(SRCDIR)/widl.man $(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
uninstall::
|
2004-03-09 04:49:39 +01:00
|
|
|
$(RM) $(bindir)/widl$(EXEEXT) $(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
2002-07-16 05:20:45 +02:00
|
|
|
|
|
|
|
### Dependencies:
|