2000-06-13 06:34:41 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2002-05-30 22:36:29 +02:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2002-05-30 22:36:29 +02:00
|
|
|
PROGRAMS = wmc$(EXEEXT)
|
2005-10-06 18:10:01 +02:00
|
|
|
MANPAGES = wmc.man
|
2000-06-13 06:34:41 +02:00
|
|
|
MODULE = none
|
|
|
|
|
|
|
|
C_SRCS = \
|
|
|
|
lang.c \
|
|
|
|
mcl.c \
|
|
|
|
utils.c \
|
|
|
|
wmc.c \
|
|
|
|
write.c
|
|
|
|
|
|
|
|
EXTRA_SRCS = mcy.y
|
2005-09-28 20:17:08 +02:00
|
|
|
EXTRA_OBJS = mcy.tab.o
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
mcl.o: mcy.tab.h
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2003-03-19 23:09:16 +01:00
|
|
|
wmc$(EXEEXT): $(OBJS)
|
2006-07-11 19:33:22 +02:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
|
2002-05-30 22:36:29 +02:00
|
|
|
|
2005-09-28 20:17:08 +02:00
|
|
|
mcy.tab.c mcy.tab.h: mcy.y
|
|
|
|
$(BISON) -d -t $(SRCDIR)/mcy.y -o mcy.tab.c
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
2005-09-28 20:17:08 +02:00
|
|
|
mcy.tab.h: mcy.tab.c
|
|
|
|
mcy.tab.o: mcy.tab.h
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
install:: $(PROGRAMS) $(MANPAGES)
|
2006-02-14 13:51:38 +01:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
$(INSTALL_DATA) wmc.man $(DESTDIR)$(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
|
|
|
$(INSTALL_PROGRAM) wmc$(EXEEXT) $(DESTDIR)$(bindir)/wmc$(EXEEXT)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
uninstall::
|
2006-02-14 13:51:38 +01:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/wmc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
### Dependencies:
|