2000-06-13 06:34:41 +02:00
|
|
|
DEFS = -D__WINE__
|
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
YACCOPT = #-v
|
|
|
|
|
2000-06-14 23:45:38 +02:00
|
|
|
PROGRAMS = wmc
|
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@
|
|
|
|
|
2000-12-06 01:05:14 +01:00
|
|
|
wmc: $(OBJS) $(TOPOBJDIR)/unicode/libwine_unicode.$(LIBEXT)
|
|
|
|
$(CC) $(CFLAGS) -o wmc $(OBJS) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2000-12-06 01:05:14 +01:00
|
|
|
$(TOPOBJDIR)/unicode/libwine_unicode.$(LIBEXT):
|
|
|
|
cd `dirname $@` && $(MAKE) `basename $@`
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
y.tab.c y.tab.h: mcy.y
|
|
|
|
$(YACC) $(YACCOPT) -d -t $(SRCDIR)/mcy.y
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(RM) y.tab.c y.tab.h y.output
|
|
|
|
|
|
|
|
install:: $(PROGRAMS)
|
|
|
|
[ -d $(bindir) ] || $(MKDIR) $(bindir)
|
|
|
|
[ -d $(mandir)/man$(prog_manext) ] || $(MKDIR) $(mandir)/man$(prog_manext)
|
2000-06-20 22:50:50 +02:00
|
|
|
$(INSTALL_DATA) $(SRCDIR)/wmc.man $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
2000-06-13 06:34:41 +02:00
|
|
|
$(INSTALL_PROGRAM) wmc $(bindir)/wmc
|
|
|
|
|
|
|
|
uninstall::
|
|
|
|
$(RM) $(bindir)/wmc $(mandir)/man$(prog_manext)/wmc.$(prog_manext)
|
|
|
|
|
|
|
|
### Dependencies:
|