diff options
Diffstat (limited to 'converter/other/jpeg2000/libjasper/Makefile.common')
-rw-r--r-- | converter/other/jpeg2000/libjasper/Makefile.common | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/converter/other/jpeg2000/libjasper/Makefile.common b/converter/other/jpeg2000/libjasper/Makefile.common new file mode 100644 index 00000000..71a11832 --- /dev/null +++ b/converter/other/jpeg2000/libjasper/Makefile.common @@ -0,0 +1,41 @@ +# -*-makefile-*- <-- an Emacs control +# This is common rules for the pnmtojpc subdirectories. +# +# Set the following variables before including this: +# +# LIB_OBJECTS: List of object files from this directory that go into +# libjasper. + +all: $(LIB_OBJECTS) partlist + +partlist: $(SUBDIRS:%=%/partlist) + cat /dev/null $(SUBDIRS:%=%/partlist) >$@ + echo $(LIB_OBJECTS:%=$(CURDIR)/%) >>$@ + +.PHONY: $(SUBDIRS:%=%/partlist) +$(SUBDIRS:%=%/partlist): %/partlist: $(CURDIR)/% + $(MAKE) -C $(dir $@) -f $(SRCDIR)/$(SUBDIR)/$(dir $@)Makefile \ + SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR) $(notdir $@) + +INCLUDES = -I$(JASPERSRCDIR)/include -I$(JASPERSRCDIR)/importinc + +include $(SRCDIR)/Makefile.common + +DEFS = -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STDDEF_H=1 -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_RAS_SUPPORT -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_PGX_SUPPORT -DEXCLUDE_PNM_SUPPORT + +$(LIB_OBJECTS):%.o:%.c + $(CC) -c $(CFLAGS) $(INCLUDES) $(DEFS) $(CADD) $< + +$(LIB_OBJECTS): $(JASPERSRCDIR)/importinc + +$(JASPERSRCDIR)/importinc: + $(MAKE) -C $(dir $@) $(notdir $@) + +clean: localclean + +.PHONY: localclean +localclean: + rm -f partlist + +.PHONY: FORCE +FORCE: |