summaryrefslogtreecommitdiff
path: root/makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'makefile.in')
-rw-r--r--makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefile.in b/makefile.in
index 7960f05..5a10e73 100644
--- a/makefile.in
+++ b/makefile.in
@@ -150,6 +150,11 @@ bindir: $(MAKEX)
bcc: bindir
echo '#define VERSION "'"$(VERSION)"'"' > bcc/version.h
+ VER=$(VERSION) ; \
+ echo "#define VER_MAJ $${VER%%.*}" >> bcc/version.h ; \
+ VER="$${VER#*.}" ; \
+ echo "#define VER_MIN $${VER%.*}" >> bcc/version.h ; \
+ echo "#define VER_PAT $${VER#*.}" >> bcc/version.h
$(MAKEC) bcc $(MAKEARG) BCCARCH='$(BCCARCH)' bcc ncc bcc-cc1
cp -p bcc/bcc$(EXE) bin/Bcc$(EXE)
cp -p bcc/ncc$(EXE) bin/ncc$(EXE)