2013-10-04 12:17:53 +00:00
|
|
|
PROGRAMS = wmc$(EXEEXT)
|
2013-11-18 10:34:03 +00:00
|
|
|
MANPAGES = wmc.man.in
|
2014-01-30 11:14:47 +00:00
|
|
|
ALL_LIBS = $(GETTEXTPO_LIBS) $(LIBWINE_STATIC) $(LIBPORT)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
C_SRCS = \
|
|
|
|
lang.c \
|
|
|
|
mcl.c \
|
2011-01-24 19:09:53 +00:00
|
|
|
po.c \
|
2000-06-13 04:34:41 +00:00
|
|
|
utils.c \
|
|
|
|
wmc.c \
|
|
|
|
write.c
|
|
|
|
|
2006-09-09 11:16:22 +00:00
|
|
|
BISON_SRCS = mcy.y
|
2000-06-13 04:34:41 +00:00
|
|
|
|
2014-01-14 10:59:25 +00:00
|
|
|
OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
2003-03-19 22:09:16 +00:00
|
|
|
wmc$(EXEEXT): $(OBJS)
|
2013-10-04 12:17:53 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS)
|
2002-05-30 20:36:29 +00:00
|
|
|
|
2014-01-14 10:59:25 +00:00
|
|
|
.PHONY: install install-dev uninstall
|
|
|
|
|
2013-12-26 12:24:26 +00:00
|
|
|
install install-dev:: wmc$(EXEEXT) install-man-pages
|
2013-10-04 12:17:53 +00:00
|
|
|
$(INSTALL_PROGRAM) wmc$(EXEEXT) $(DESTDIR)$(bindir)/wmc$(EXEEXT)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
uninstall::
|
2010-12-05 15:17:42 +00:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/wmc$(EXEEXT)
|