blob: d2cb7d42499c8102ad1e07d7e8ace7482cdd43d8 (
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
31
32
33
34
35
36
37
38
39
40
|
# -*-makefile-*- <-- an Emacs control
# This is common rules for the libjasper subdirectories.
#
# Set the following variables before including this:
#
# SUBDIRS: Subdirectory names
# LIB_OBJECTS: List of object files from this directory that go into
# libjasper.
# JASPERSRCDIR: libjasper source directory
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 $@)
include $(SRCDIR)/Makefile.common
INCLUDES = -I$(JASPERSRCDIR)/include -Iimportinc
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 $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(DEFS) $(CADD) $<
$(LIB_OBJECTS): importinc
thisdirclean: localclean
.PHONY: localclean
localclean:
rm -f partlist
.PHONY: FORCE
FORCE:
|