diff options
Diffstat (limited to 'converter/other/jpeg2000/libjasper/Makefile')
-rw-r--r-- | converter/other/jpeg2000/libjasper/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/converter/other/jpeg2000/libjasper/Makefile b/converter/other/jpeg2000/libjasper/Makefile new file mode 100644 index 00000000..73d263ec --- /dev/null +++ b/converter/other/jpeg2000/libjasper/Makefile @@ -0,0 +1,28 @@ +ifeq ($(SRCDIR)x,x) + SRCDIR = $(CURDIR)/../../../.. + BUILDDIR = $(SRCDIR) +endif +SUBDIR = converter/other/jpeg2000/libjasper +VPATH=.:$(SRCDIR)/$(SUBDIR) + +include $(BUILDDIR)/Makefile.config + +SUBDIRS = base jp2 jpc + +# NOTE: The library source code uses 64 bit types, so you cannot +# build it (compile will fail) if you don't have 64 bit types defined +# by pm_config.h (normally by including <inttypes.h>) + +all: libjasper.a + +include $(SRCDIR)/$(SUBDIR)/Makefile.common + +# We cheat a bit here -- the real dependencies are all the .o files listed +# in the part list, but since we don't know what those are, we just do a +# 'make all' in each subdirectory to get them built. That means it always +# looks like dependencies were rebuilt and libjasper.a gets rebuilt every +# time. +libjasper.a: $(SUBDIRS:%=%/all) partlist + ar rc $@ $(shell cat partlist) + $(RANLIB) $@ + |