From f5cb93bdc6fb118b31337f2a39a20e08e79492cb Mon Sep 17 00:00:00 2001 From: romeyke Date: Tue, 9 Jul 2013 10:45:48 +0000 Subject: [PATCH] - added special README.aix for hints on AIX systems - added a special makefile for AIX make git-svn-id: https://sdvsvn10.slub-dresden.de/svn/Langzeitarchivierung/trunk/fixit/fixit_tiff@330 c63e1d0e-0205-4395-96c5-23d0ee883611 --- README.aix | 7 +++++++ makefile.aix | 27 +++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 README.aix create mode 100644 makefile.aix diff --git a/README.aix b/README.aix new file mode 100644 index 0000000..9ebbd0a --- /dev/null +++ b/README.aix @@ -0,0 +1,7 @@ +Because AIX is something different, here some hints to compile: +1. check if you have gcc, if so then set environment to "CC=gcc" +2. check if your make-command is AIX original, then call "make -f makefile.aix" +3. if your make-command is GNU make, then call just "make" + +(Hint: the reason for 2. is, that AIX make has differences usign $< within +makefiles) diff --git a/makefile.aix b/makefile.aix new file mode 100644 index 0000000..20c2314 --- /dev/null +++ b/makefile.aix @@ -0,0 +1,27 @@ +LIB+=-ltiff +CFLAGS=-Os + +# default target +all: fixit_tiff + +# remove debugging symbols (smaller size) +strip: all + strip --strip-all fixit_tiff + +%.o: %.c + $(CC) $(CFLAGS) $(INC) -c $< + +# default executable +fixit_tiff: fixit_tiff.o + $(CC) $(CFLAGS) $(INC) $(LIB) -o $@ fixit_tiff.o + +# clean workdir +clean: + @rm -f *.o + @rm -f fixit_tiff + +# mrproper clean +distclean: clean + @rm -f *~ + +.PHONY: all clean distclean strip