about summary refs log tree commit diff
path: root/editor/specialty/Makefile
blob: 8d9ca04427857099685bb22df5ddb3849fc8a689 (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
ifeq ($(SRCDIR)x,x)
  SRCDIR = $(CURDIR)/../..
  BUILDDIR = $(SRCDIR)
endif
SUBDIR = editor/specialty
VPATH=.:$(SRCDIR)/$(SUBDIR)

include $(BUILDDIR)/config.mk

PORTBINARIES = pamdeinterlace \
	       pammixinterlace \
	       pamoil \
	       pampop9 \
	       pampaintspill \
	       pbmlife \
	       pgmabel \
	       pgmbentley \
	       pgmmorphconv \
	       pnmindex \
	       pnmmercator \
	       ppm3d \
	       ppmglobe \
	       ppmntsc \
	       ppmrelief \
	       ppmshift \
	       ppmspread \
	       ppmtv \

# 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.

NOMERGEBINARIES = 
MERGEBINARIES = $(PORTBINARIES)


BINARIES = $(MERGEBINARIES) $(NOMERGEBINARIES)
SCRIPTS =

OBJECTS = $(BINARIES:%=%.o)

MERGE_OBJECTS = $(MERGEBINARIES:%=%.o2)

HAVE_MERGE_COMPAT=YES

.PHONY: all
all: $(BINARIES)

include $(SRCDIR)/common.mk

install.bin install.merge: install.bin.local

.PHONY: install.bin.local
install.bin.local: $(PKGDIR)/bin
# Remember that $(SYMLINK) might just be a copy command.
# pamoil replaced pgmoil in June 2001.
	cd $(PKGDIR)/bin ; \
	rm -f pgmoil$(EXE) ; \
	$(SYMLINK) pamoil$(EXE) pgmoil$(EXE)

mergecomptrylist:
	cat /dev/null >$@
	echo "TRY(\"pgmoil\", main_pamoil);" >>$@