Sweden-Number/tools/widl/Makefile.in

36 lines
708 B
Makefile
Raw Normal View History

PROGRAMS = widl$(EXEEXT)
MANPAGES = widl.man.in
C_SRCS = \
client.c \
expr.c \
hash.c \
header.c \
proxy.c \
register.c \
server.c \
typegen.c \
typelib.c \
typetree.c \
utils.c \
widl.c \
write_msft.c
LEX_SRCS = parser.l
BISON_SRCS = parser.y
widl_EXTRADEFS = -DDEFAULT_INCLUDE_DIR=\"${includedir}/windows/\"
2014-01-14 11:59:25 +01:00
OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o)
widl$(EXEEXT): $(OBJS) $(LIBWPP)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBPORT) $(LDFLAGS)
2014-01-14 11:59:25 +01:00
.PHONY: install install-dev uninstall
install install-dev:: $(PROGRAMS) install-man-pages
$(INSTALL_PROGRAM) widl$(EXEEXT) $(DESTDIR)$(bindir)/widl$(EXEEXT)
uninstall::
$(RM) $(DESTDIR)$(bindir)/widl$(EXEEXT)