2000-06-13 06:34:41 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
YACCOPT = #-v
|
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)
|
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
|
|
|
|
EXTRA_OBJS = y.tab.o
|
|
|
|
|
2000-07-25 23:01:59 +02:00
|
|
|
all: $(PROGRAMS)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2000-11-06 06:32:59 +01:00
|
|
|
mcl.o: y.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
|
|
|
|
2000-06-13 06:34:41 +02:00
|
|
|
y.tab.c y.tab.h: mcy.y
|
|
|
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
|
|
|
|
|
2002-12-15 02:19:53 +01:00
|
|
|
# hack to allow parallel make
|
|
|
|
y.tab.h: y.tab.c
|
|
|
|
y.tab.o: y.tab.h
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
install:: $(PROGRAMS)
|
2002-05-09 06:31:39 +02:00
|
|
|
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
|
2000-06-20 22:50:50 +02:00
|
|
|
$(INSTALL_DATA) $(SRCDIR)/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:
|