Fixed a problem with build on cygwin related to the svnversion stuff.

git-svn-id: http://picoc.googlecode.com/svn/trunk@530 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2011-02-15 04:00:53 +00:00
parent de95adb36a
commit 4751cfd15c
2 changed files with 2 additions and 9 deletions

View file

@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-Wall -pedantic -g -DUNIX_HOST
CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DVER=\"`svnversion -n`\"
LIBS=-lm -lreadline
TARGET = picoc
@ -16,13 +16,6 @@ all: depend $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
# rebuild the version number every time so we always have the
# correct subversion version
version.h:
echo "#define PICOC_SUBVERSION_VERSION \"`svnversion`\"" > version.h
.PHONY: version.h
test: all
(cd tests; make test)

View file

@ -2,7 +2,7 @@
#include "version.h"
/* the picoc version string */
#define PICOC_VERSION "v2.1 beta r" PICOC_SUBVERSION_VERSION
#define PICOC_VERSION "v2.1 beta r" VER
static const char *VersionString = NULL;