From 880dae9b5ecdb9035fb976b06ea3426259195592 Mon Sep 17 00:00:00 2001 From: thierry Date: Mon, 30 Jan 2006 23:25:17 +0000 Subject: ascii2binary and binary2ascii convert between textual and binary representations of numbers. The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers. WWW: http://billposer.org/Software/a2b.html --- converters/ascii2binary/files/patch-Makefile | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 converters/ascii2binary/files/patch-Makefile (limited to 'converters/ascii2binary/files') diff --git a/converters/ascii2binary/files/patch-Makefile b/converters/ascii2binary/files/patch-Makefile new file mode 100644 index 0000000..ef22206 --- /dev/null +++ b/converters/ascii2binary/files/patch-Makefile @@ -0,0 +1,49 @@ +--- Makefile.orig Mon Sep 12 19:35:10 2005 ++++ Makefile Mon Jan 30 00:09:11 2006 +@@ -1,28 +1,27 @@ +-CC=gcc +-BINDIR=/usr/local/bin +-MANDIR=/usr/local/man/man1 ++BINDIR=${PREFIX}/bin ++MANDIR=${PREFIX}/man/man1 + BINS= ascii2binary binary2ascii + MANS= ascii2binary.1 binary2ascii.1 +-LOCALEDIR=/usr/local/share/locale +-CFLAGS= -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\" ++LOCALEDIR=${PREFIX}/share/locale ++CFLAGS= ${CPPFLAGS} -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\" + all: ${BINS} mo + #CFLAGS= -DPACKAGE=\"ascii2binary\" -DLOCALEDIR=\"${LOCALEDIR}\" + #all: ${BINS} + + ascii2binary: ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o +- ${CC} -o ascii2binary ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o ++ ${CC} ${LDFLAGS} -o ascii2binary ascii2binary.o GetWord.o MachineInfo.o endian.o exitcodes.o ${LIBS} + + binary2ascii: binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o +- ${CC} -o binary2ascii binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o ++ ${CC} ${LDFLAGS} -o binary2ascii binary2ascii.o binfmt.o MachineInfo.o endian.o exitcodes.o ${LIBS} + + MachineInfo.o: MachineInfo.c +- ${CC} -c MachineInfo.c ++ ${CC} -c ${CFLAGS} MachineInfo.c + + GetWord.o: GetWord.c +- ${CC} -c GetWord.c ++ ${CC} -c ${CFLAGS} GetWord.c + + binfmt.o: binfmt.c +- ${CC} -c binfmt.c ++ ${CC} -c ${CFLAGS} binfmt.c + + exitcodes.o: exitcodes.c + ${CC} -c ${CFLAGS} exitcodes.c +@@ -33,7 +32,7 @@ + binary2ascii.o: binary2ascii.c + ${CC} ${CFLAGS} -c binary2ascii.c + +-mo: ++mo: + (cd locale/fr/LC_MESSAGES; make ascii2binary.mo) + + install: ${BINS} ${MANS} -- cgit v1.1