about summary refs log tree commit diff
path: root/converter/other/jpeg2000/libjasper/Makefile
blob: ddbd148a8ef972099d8bbc452d1b296961f1f524 (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)/config.mk

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)/common.mk

# 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) $@