blob: 5ce529fd0ceb2eaaa615ffd676b30694614a99c1 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
ifeq ($(SRCDIR)x,x)
SRCDIR = $(CURDIR)/../../..
BUILDDIR = $(SRCDIR)
endif
SUBDIR = converter/other/fiasco
VPATH=.:$(SRCDIR)/$(SUBDIR)
include $(BUILDDIR)/config.mk
COMP_INCLUDES = \
-I$(SRCDIR)/$(SUBDIR)/codec -I$(SRCDIR)/$(SUBDIR)/input \
-I$(SRCDIR)/$(SUBDIR)/output -I$(SRCDIR)/$(SUBDIR)/lib \
PORTBINARIES = pnmtofiasco fiascotopnm
BINARIES = $(PORTBINARIES)
MERGEBINARIES = $(BINARIES)
SCRIPTS =
all: $(BINARIES)
FIASCOLIBS = codec/libfiasco_codec.a \
input/libfiasco_input.a \
output/libfiasco_output.a \
lib/libfiasco_lib.a
ADDL_OBJECTS = getopt.o getopt1.o params.o
OBJECTS = $(BINARIES:%=%.o) $(ADDL_OBJECTS)
MERGE_OBJECTS = $(BINARIES:%=%.o2) $(ADDL_OBJECTS) $(FIASCOLIBS)
SUBDIRS = codec input output lib
include $(SRCDIR)/common.mk
$(BINARIES):%:%.o $(ADDL_OBJECTS) $(FIASCOLIBS)
$(BINARIES): LDFLAGS_TARGET = $(shell $(LIBOPT) $(FIASCOLIBS))
codec/libfiasco_codec.a: $(BUILDDIR)/$(SUBDIR)/codec FORCE
$(MAKE) -C codec -f $(SRCDIR)/$(SUBDIR)/codec/Makefile \
libfiasco_codec.a SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR)
input/libfiasco_input.a: $(BUILDDIR)/$(SUBDIR)/input FORCE
$(MAKE) -C input -f $(SRCDIR)/$(SUBDIR)/input/Makefile \
libfiasco_input.a SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR)
output/libfiasco_output.a: $(BUILDDIR)/$(SUBDIR)/output FORCE
$(MAKE) -C output -f $(SRCDIR)/$(SUBDIR)/output/Makefile \
libfiasco_output.a SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR)
lib/libfiasco_lib.a: $(BUILDDIR)/$(SUBDIR)/lib FORCE
$(MAKE) -C lib -f $(SRCDIR)/$(SUBDIR)/lib/Makefile \
libfiasco_lib.a SRCDIR=$(SRCDIR) BUILDDIR=$(BUILDDIR)
|