Patch is LGPL as I had a moment of clarity and decided to look at how Alexandre did the makefile for libwine. Changelog: 1) Link to libberty.a when building .exe 2) Fix Clean Rule to actualy remove target Thanks Steven "Every revolution was once a thought in one man's mind" - Ralph Waldo Emerson cvs diff -u Makefile.in Index: Makefile.in =================================================================== RCS file: /home/wine/wine/tools/wrc/Makefile.in,v retrieving revision 1.16 diff -u -r1.16 Makefile.in --- Makefile.in 9 May 2002 04:31:40 -0000 1.16 +++ Makefile.in 30 May 2002 05:48:11 -0000 @@ -5,8 +5,9 @@ VPATH = @srcdir@ LEXOPT = -Cf #-w -b YACCOPT = #-v +EXEEXT = @EXEEXT@ -PROGRAMS = wrc +PROGRAMS = wrc$(EXEEXT) MODULE = none C_SRCS = \ @@ -30,6 +31,9 @@ wrc: $(OBJS) $(CC) $(CFLAGS) -o wrc $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS) +wrc.exe: $(OBJS) + $(CC) $(CFLAGS) -o wrc.exe $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) -liberty $(LDFLAGS) + y.tab.c y.tab.h: parser.y $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y @@ -43,7 +47,7 @@ $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c $(SRCDIR)/ppl.l clean:: - $(RM) ppy.tab.h ppy.output parser.output parser.tab.h lex.backup y.output + $(RM) ppy.tab.h ppy.output parser.output parser.tab.h lex.backup y.output wrc$(EXEEXT) install:: $(PROGRAMS) $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) cvs diff -u Makefile.in Index: Makefile.in =================================================================== RCS file: /home/wine/wine/tools/wmc/Makefile.in,v retrieving revision 1.10 diff -u -r1.10 Makefile.in --- Makefile.in 9 May 2002 04:31:40 -0000 1.10 +++ Makefile.in 30 May 2002 05:48:53 -0000 @@ -4,8 +4,9 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ YACCOPT = #-v +EXEEXT = @EXEEXT@ -PROGRAMS = wmc +PROGRAMS = wmc$(EXEEXT) MODULE = none C_SRCS = \ @@ -27,11 +28,14 @@ wmc: $(OBJS) $(CC) $(CFLAGS) -o wmc $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS) +wmc.exe: $(OBJS) + $(CC) $(CFLAGS) -o wmc.exe $(OBJS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) -liberty $(LDFLAGS) + 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 + $(RM) y.tab.c y.tab.h y.output wmc$(EXEEXT) install:: $(PROGRAMS) $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)