55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ../..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
EXEEXT = @EXEEXT@
|
|
|
|
PROGRAMS = widl$(EXEEXT)
|
|
MANPAGES = widl.man
|
|
MODULE = none
|
|
|
|
C_SRCS = \
|
|
client.c \
|
|
hash.c \
|
|
header.c \
|
|
proxy.c \
|
|
server.c \
|
|
typegen.c \
|
|
typelib.c \
|
|
utils.c \
|
|
widl.c \
|
|
write_msft.c
|
|
|
|
EXTRA_SRCS = parser.y parser.l
|
|
EXTRA_OBJS = parser.tab.o @LEX_OUTPUT_ROOT@.o
|
|
|
|
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
|
|
|
@MAKE_RULES@
|
|
|
|
widl$(EXEEXT): $(OBJS) $(LIBWPP)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
|
|
|
|
parser.tab.c parser.tab.h: parser.y
|
|
$(BISON) -d -t $(SRCDIR)/parser.y -o parser.tab.c
|
|
|
|
# hack to allow parallel make
|
|
parser.tab.h: parser.tab.c
|
|
parser.tab.o: parser.tab.h
|
|
|
|
@LEX_OUTPUT_ROOT@.c: parser.l
|
|
$(LEX) $(SRCDIR)/parser.l
|
|
|
|
@LEX_OUTPUT_ROOT@.o: parser.tab.h
|
|
|
|
install:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
|
|
$(INSTALL_PROGRAM) widl$(EXEEXT) $(DESTDIR)$(bindir)/widl$(EXEEXT)
|
|
$(INSTALL_DATA) widl.man $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
|
|
|
uninstall::
|
|
$(RM) $(DESTDIR)$(bindir)/widl$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)
|
|
|
|
### Dependencies:
|