blob: a6748347c04a6568217b4553f93dcff4f3008f8c (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
ifeq ($(SRCDIR)x,x)
SRCDIR = $(CURDIR)/..
BUILDDIR = $(SRCDIR)
endif
SUBDIR = other
VPATH=.:$(SRCDIR)/$(SUBDIR)
include $(BUILDDIR)/config.mk
SUBDIRS = pamx
EXTERN_INCLUDES =
ifneq ($(LINUXSVGALIB),NONE)
ifneq ($(LINUXSVGAHDR_DIR),)
EXTERN_INCLUDES += -I$(LINUXSVGAHDR_DIR)
endif
endif
# We tend to separate out the build targets so that we don't have
# any more dependencies for a given target than it really needs.
# That way, if there is a problem with a dependency, we can still
# successfully build all the stuff that doesn't depend upon it.
# This package is so big, it's useful even when some parts won't
# build.
PORTBINARIES = pamarith pambayer pamchannel pamdepth \
pamendian pamfixtrunc pamlookup pampick pamsplit \
pamstack pamsummcol pnmcolormap \
ppmdcfont ppmddumpfont ppmdmkfont
BINARIES = $(PORTBINARIES)
ifneq ($(LINUXSVGALIB),NONE)
BINARIES += ppmsvgalib
endif
SCRIPTS = ppmtomap
OBJECTS = $(BINARIES:%=%.o)
# We don't include programs that have special library dependencies in the
# merge scheme, because we don't want those dependencies to prevent us
# from building all the other programs.
MERGEBINARIES = $(BINARIES)
MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2)
.PHONY: all
all: $(BINARIES) $(SUBDIRS:%=%/all)
include $(SRCDIR)/common.mk
ppmsvgalib: %: %.o $(NETPBMLIB) $(LIBOPT)
$(LD) -o $@ $< \
$(shell $(LIBOPT) $(NETPBMLIB) $(LINUXSVGALIB)) \
$(MATHLIB) $(LDFLAGS) $(LDLIBS) $(LADD)
install.bin: install.bin.local
.PHONY: install.bin.local
install.bin.local: $(PKGDIR)/bin
# Remember that $(SYMLINK) might just be a copy command.
# In July 2002, pamarith replaced pnmarith
cd $(PKGDIR)/bin ; \
rm -f pnmarith ; \
$(SYMLINK) pamarith$(EXE) pnmarith
# In December 2005, pamsplit replaced pnmsplit
cd $(PKGDIR)/bin ; \
rm -f pnmsplit ; \
$(SYMLINK) pamsplit$(EXE) pnmsplit
# In February 2006, pamdepth replaced pnmdepth
cd $(PKGDIR)/bin ; \
rm -f pnmdepth ; \
$(SYMLINK) pamdepth$(EXE) pnmdepth
FORCE:
|