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)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBUNICODE) $(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)
|
2002-05-09 06:31:39 +02:00
|
|
|
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
|
2005-10-06 18:10:01 +02:00
|
|
|
$(INSTALL_DATA) wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2002-06-15 01:48:27 +02:00
|
|
|
$(INSTALL_PROGRAM) wmc$(EXEEXT) $(bindir)/wmc$(EXEEXT)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
uninstall::
|
2002-06-15 01:48:27 +02:00
|
|
|
$(RM) $(bindir)/wmc$(EXEEXT) $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
### Dependencies:
|