Debian Codegraph @

converter/other/jpeg2000/libjasper/Makefile

raw
1 ifeq ($(SRCDIR)x,x)
2 SRCDIR = $(CURDIR)/../../../..
3 BUILDDIR = $(SRCDIR)
4 endif
5 SUBDIR = converter/other/jpeg2000/libjasper
6 VPATH=.:$(SRCDIR)/$(SUBDIR)
7
8 include $(BUILDDIR)/config.mk
9
10 SUBDIRS = base jp2 jpc
11 LIB_OBJECTS =
12 JASPERSRCDIR = $(SRCDIR)/$(SUBDIR)
13
14 # NOTE: The library source code uses 64 bit types, so you cannot
15 # build it (compile will fail) if you don't have 64 bit types defined
16 # by pm_config.h (normally by including <inttypes.h>)
17
18 all: libjasper.a
19
20 include $(SRCDIR)/$(SUBDIR)/common.mk
21
22 # We cheat a bit here -- the real dependencies are all the .o files listed
23 # in the part list, but since we don't know what those are, we just do a
24 # 'make all' in each subdirectory to get them built. That means it always
25 # looks like dependencies were rebuilt and libjasper.a gets rebuilt every
26 # time.
27 libjasper.a: $(SUBDIRS:%=%/all) partlist
28 $(AR) rc $@ $(shell cat partlist)
29 $(RANLIB) $@
30