summaryrefslogtreecommitdiff
path: root/obsolete/support/png2pdf/Makefile.in
blob: 7dc96c2567ca0d5cfd94fd89fdbad567e9961992 (plain)
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

SHELL=	/bin/sh
pp=
prefix=	@prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
mandir = @mandir@
incdir = @includedir@
libdir = @libdir@
srcdir = @srcdir@
sharedlibdir = $(libdir)/shared
LD=$(CC)

DKLIBSINC= @DKLIBSINC@
DKLIBSLIB= @DKLIBSLIB@

INCLUDES=	-I. $(DKLIBSINC) -I$(srcdir) -I$(incdir)
DEFS=		@DEFS@

COMPILEC=	$(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(VERSNO)
LINK=		$(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@

all:	png2pdf
	-mkdir -p share
	stc png2pdf.str share/png2pdf
	-cp share/png2pdf/en/png2pdf.* share/png2pdf
	-mkdir -p share/doc/png2pdf
	cp DOCU/png2pdf.pdf share/doc/png2pdf
	find lib -type d -exec chmod 755 {} \;
	find lib -type f -exec chmod 644 {} \;
	find share -type d -exec chmod 755 {} \;
	find share -type f -exec chmod 644 {} \;
	touch all

install:	all
	-mkdir -p $(pp)$(bindir)
	-mkdir -p $(pp)$(libdir)
	-mkdir -p $(pp)$(incdir)
	-mkdir -p $(pp)$(datadir)
	cp png2pdf  $(pp)$(bindir)/png2pdf
	chmod 755 $(pp)$(bindir)/png2pdf
	cp png2pdf.jar $(pp)$(bindir)/png2pdf.jar
	chmod 755 $(pp)$(bindir)/png2pdf.jar
	cp png2pdf-gui  $(pp)$(bindir)/png2pdf-gui
	chmod 755 $(pp)$(bindir)/png2pdf-gui
	-(cd share; tar cf - *) | (cd $(pp)$(datadir) ; tar xvf -)
	@echo Documentation resides in $(pp)$(datadir)/doc/png2pdf.

OBJECTS=	png2pdfm.o png2pdf.o

LIBS=	@LIBPNG@ @BZLIB@ @ZLIB@ -lm

png2pdf:	$(OBJECTS)
	$(LD)	$(LDFLAGS) $(DKLIBSLIB) -o png2pdf $(OBJECTS) -ldkc -ldkport $(LIBS)
	chmod	755		png2pdf


.SUFFIXES:
.SUFFIXES:	.c	.o

.c.o:
	$(COMPILEC) -c $< -o $@

java-progs:
	find . -name compile-archive -exec chmod 755 {} \;
	find . -name create-jar -exec chmod 755 {} \;
	(cd Java/Png2PdfGUI && make install)
VERSNUMB= -DVERSNUMB=\"1.0.12a\"