# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1316170390 0 # Node ID cb1e6b29aa7db17d0e4720d903cdf6d289cafafa # Parent 2991afb3bf71b28947b8e44ffe61c0769b0c8ffc Include revision number on OS/2 using EMX/gcc. Having trouble figuring out how to do this with VAC/nmake. diff -r 2991afb3bf71 -r cb1e6b29aa7d makefile.emx --- a/makefile.emx Fri Sep 16 10:08:07 2011 +0000 +++ b/makefile.emx Fri Sep 16 10:53:10 2011 +0000 @@ -9,11 +9,12 @@ COMPRESS = lxlite VER = 21 VERDOT = 2.1 +VERREV = $(shell svnversion -n . | cut -d ":" -f 1 | tr -d MS) DEFS = LIBS = -CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -I. -Wall -o $(@) +CFLAGS = -O -g -Zomf -Zmt -D__OS2__ -D__ST_MT_ERRNO__ -DVER_REV=$(VERREV) -I. -Wall -o $(@) LDFLAGS = -Zdll -Zcrtdll RCFLAGS = -r @@ -43,7 +44,7 @@ $(CC) $(CFLAGS) -Zcrtdll -Zomf -Zmt -o dwtest.exe dwtest.o -Llib -ldw -ldwcompat dwtest.def clean: - $(RM) $(OBJECTS) dwtest.exe + $(RM) $(OBJECTS) dwtest.exe dw.dll dwcompat.dll dw.obj: dw.c $(CC) $(CFLAGS) -c $<