blob: ad4fbd8fd856fa3a0733c34b0d0d1285ab7d14a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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
LIB_OBJECTS =
JASPERSRCDIR = $(SRCDIR)/$(SUBDIR)
# 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) $@
|