From 7fa180a0bc204e774400ba41413411c01047c913 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Mon, 21 Sep 2015 18:34:27 -0700 Subject: [PATCH] New Makefile, read/use version from it, and bump to 1.04 --- Makefile | 30 ++++++++++++++++++++++++++++++ banner.h | 2 +- version.h | 1 - 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 Makefile delete mode 100644 version.h diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f1f532 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +VERSION = v1.04 +CPPFLAGS += -DVERSION=\"$(VERSION)\" + +PROGS = bin2ecm bin2iso bincomp brrrip byteshuf byteswap cdpatch \ + fakecrc hax65816 id3point pecompat rels screamf subfile \ + uips usfv vb2rip wordadd zerofill + +.PHONY: all clean install + +all: $(PROGS) + +clean: + rm -f $(PROGS) + +prefix?=/usr/local +bindir?=/bin +target=$(DESTDIR)$(prefix) + +install-%: % + install -d "$(target)$(bindir)" + install $< "$(target)$(bindir)" + +install-ecm2bin: install-bin2ecm + ln -s bin2ecm "$(target)$(bindir)/ecm2bin" + +install: install-bin2ecm install-ecm2bin install-bin2iso install-bincomp \ + install-brrrip install-byteshuf install-byteswap install-cdpatch \ + install-fakecrc install-hax65816 install-id3point install-pecompat \ + install-rels install-screamf install-subfile install-uips \ + install-usfv install-vb2rip install-wordadd install-zerofill diff --git a/banner.h b/banner.h index 415e551..2d8d831 100644 --- a/banner.h +++ b/banner.h @@ -4,7 +4,7 @@ void banner_ok(void) { printf(TITLE "\n" " " COPYR "\n" " from Command-Line Pack " -#include "version.h" + VERSION " (%d-bit " #if defined(__CYGWIN__) diff --git a/version.h b/version.h deleted file mode 100644 index f3162e5..0000000 --- a/version.h +++ /dev/null @@ -1 +0,0 @@ -"v1.03"