2000-06-13 04:34:41 +00:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
YACCOPT = #-v
|
2002-05-30 20:36:29 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-06-13 04:34:41 +00:00
|
|
|
|
2002-05-30 20:36:29 +00:00
|
|
|
PROGRAMS = wmc$(EXEEXT)
|
2000-06-13 04:34:41 +00: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 21:01:59 +00:00
|
|
|
all: $(PROGRAMS)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
2000-11-06 05:32:59 +00:00
|
|
|
mcl.o: y.tab.h
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2002-04-27 21:19:22 +00:00
|
|
|
wmc: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o wmc $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
2002-05-30 20:36:29 +00:00
|
|
|
wmc.exe: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o wmc.exe $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) -liberty $(LDFLAGS)
|
|
|
|
|
2000-06-13 04:34:41 +00:00
|
|
|
y.tab.c y.tab.h: mcy.y
|
|
|
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
|
|
|
|
|
2002-12-15 01:19:53 +00:00
|
|
|
# hack to allow parallel make
|
|
|
|
y.tab.h: y.tab.c
|
|
|
|
y.tab.o: y.tab.h
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
install:: $(PROGRAMS)
|
2002-05-09 04:31:39 +00:00
|
|
|
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
|
2000-06-20 20:50:50 +00:00
|
|
|
$(INSTALL_DATA) $(SRCDIR)/wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2002-06-14 23:48:27 +00:00
|
|
|
$(INSTALL_PROGRAM) wmc$(EXEEXT) $(bindir)/wmc$(EXEEXT)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
uninstall::
|
2002-06-14 23:48:27 +00:00
|
|
|
$(RM) $(bindir)/wmc$(EXEEXT) $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2000-06-13 04:34:41 +00:00
|
|
|
|
|
|
|
### Dependencies:
|