summaryrefslogtreecommitdiff
path: root/print/pnm2ppa/files/patch-aa
blob: 8813af595200bf78c4ded352a32648ce7cd0f019 (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
--- Makefile.orig	Sun Oct  6 10:27:36 2002
+++ Makefile	Mon Nov 18 21:08:50 2002
@@ -5,14 +5,14 @@
 # paths to locations where the pnm2ppa binary, the configuration file,
 # and the man page should be installed.   On some systems (like Solaris)
 # the install command requires the syntax BINDIR="-f /usr/local/bin".
-BINDIR="/usr/local/bin"
-CONFDIR="/etc"
-MANDIR="/usr/local/man/man1"
+BINDIR="${PREFIX}/bin"
+CONFDIR="${PREFIX}/etc"
+MANDIR="${PREFIX}/man/man1"
 
 #compiler and linker options:
-CC=gcc
-CFLAGS=-Wall -pedantic -O2  
-LDFLAGS=-lm
+CC?=gcc
+CFLAGS+=-DCONFDIR=\"$(CONFDIR)\"
+LDFLAGS+=-lm
 
 INSTALL=install
 # Install under Linux and other versions with the -b (backup) option