summaryrefslogtreecommitdiff
path: root/print/pstotext/files/patch-aa
blob: afe9e3eb9902cf0554f37299af67cf84396a9559 (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
--- Makefile.orig	Wed Oct 28 08:45:58 1998
+++ Makefile	Tue Feb  1 23:21:29 2000
@@ -8,7 +8,8 @@
 # commenting out the includes of ptotdll.h in ptotdll.c and main.c.
 # PMcJ 6 Sep 96
 
-CC=gcc
+CC?=gcc
+CFLAGS?=-O2
 #CC=cc -std
 
 BUNDLE = ocr.h rot270.h rot90.h
@@ -16,10 +17,10 @@
 all:	pstotext
 
 main.o: ptotdll.h bundle.h ocr.h rot270.h rot90.h
-	$(CC) -c $*.c
+	$(CC) ${CFLAGS} -c $*.c
 
 ptotdll.o: ptotdll.h
-	$(CC) -c $*.c
+	$(CC) ${CFLAGS} -c $*.c
 
 pstotext: bundle.o main.o ptotdll.o
 	$(CC) -o pstotext main.o bundle.o ptotdll.o -lm
@@ -27,7 +28,7 @@
 .SUFFIXES: .ps
 
 .c.o:
-	$(CC) -c $*.c
+	$(CC) ${CFLAGS} -c $*.c
 
 # "Bundle" an Ascii file.
 .ps.h: