Mercurial > dwindows
changeset 1164:cb1e6b29aa7d
Include revision number on OS/2 using EMX/gcc.
Having trouble figuring out how to do this with VAC/nmake.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 16 Sep 2011 10:53:10 +0000 |
parents | 2991afb3bf71 |
children | 590740c9c5c6 |
files | makefile.emx |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 $<