2011-01-24 20:09:53 +01:00
|
|
|
DEFS = -D__WINESRC__ $(EXTRADEFS)
|
2007-06-20 20:03:30 +02:00
|
|
|
PROGRAMS = wmc$(EXEEXT) wmc-installed
|
2010-12-05 16:17:42 +01:00
|
|
|
MANPAGE = wmc.man
|
2011-01-24 20:09:53 +01:00
|
|
|
ALL_LIBS = @LIBGETTEXTPO@ $(LIBWINE) $(LIBPORT)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
C_SRCS = \
|
|
|
|
lang.c \
|
|
|
|
mcl.c \
|
2011-01-24 20:09:53 +01:00
|
|
|
po.c \
|
2000-06-13 06:34:41 +02:00
|
|
|
utils.c \
|
|
|
|
wmc.c \
|
|
|
|
write.c
|
|
|
|
|
2006-09-09 13:16:22 +02:00
|
|
|
BISON_SRCS = mcy.y
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2006-08-07 17:48:18 +02:00
|
|
|
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
|
2010-12-05 16:17:42 +01:00
|
|
|
all: $(PROGRAMS)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2003-03-19 23:09:16 +01:00
|
|
|
wmc$(EXEEXT): $(OBJS)
|
2011-01-24 20:09:53 +01:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
|
2002-05-30 22:36:29 +02:00
|
|
|
|
2007-06-20 20:03:30 +02:00
|
|
|
wmc-installed: $(OBJS)
|
2011-01-24 20:09:53 +01:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
|
2007-06-20 20:03:30 +02:00
|
|
|
|
2010-12-05 16:17:42 +01:00
|
|
|
install:: wmc-installed $(DESTDIR)$(bindir)
|
2007-06-20 20:03:30 +02:00
|
|
|
$(INSTALL_PROGRAM) wmc-installed $(DESTDIR)$(bindir)/wmc$(EXEEXT)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
uninstall::
|
2010-12-05 16:17:42 +01:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/wmc$(EXEEXT)
|