Respect CC and CFLAGS
This commit is contained in:
parent
42a5e179b8
commit
0f812b6765
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91659
3 changed files with 78 additions and 32 deletions
13
japanese/recjis/files/patch-Makefile
Normal file
13
japanese/recjis/files/patch-Makefile
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- Makefile.orig Sun Oct 19 03:06:42 2003
|
||||
+++ Makefile Sun Oct 19 03:06:56 2003
|
||||
@@ -19,7 +19,9 @@
|
||||
|
||||
BINDIR=/usr/local/bin
|
||||
LIBDIR=/usr/local/lib/recjis
|
||||
-CFLAGS=-O -DLIBDIR=\"$(LIBDIR)\"
|
||||
+CC?=cc
|
||||
+CFLAGS?= -O -pipe
|
||||
+CFLAGS+= -DLIBDIR=\"$(LIBDIR)\"
|
||||
|
||||
prog: rjis rujis rsjis dejis
|
||||
|
|
@ -1,32 +1,37 @@
|
|||
*** Makefile.orig Wed May 21 13:41:33 1997
|
||||
--- Makefile Mon Jun 23 19:45:04 1997
|
||||
***************
|
||||
*** 54,66 ****
|
||||
##### INSTALL PARAMETERS #####
|
||||
LIBS=-ltermcap
|
||||
DEBUG=-O -s
|
||||
! LESSONDIR=/usr/local/lib/typist
|
||||
! TARGETDIR=/usr/local/bin
|
||||
! MANPATH=/usr/local/man
|
||||
# NeXT ONLY!! To make FAT binary.
|
||||
MAB=
|
||||
|
||||
! CFLAGS=$(DEBUG) $(MAB) -DTERMIO
|
||||
# -DKEYTYPE=\"e\"
|
||||
# -DLESSONDIR=\"$(LESSONDIR)\"
|
||||
# -DVANISHCHAR
|
||||
--- 54,67 ----
|
||||
##### INSTALL PARAMETERS #####
|
||||
LIBS=-ltermcap
|
||||
DEBUG=-O -s
|
||||
! PREFIX?=/usr/local
|
||||
! LESSONDIR=${PREFIX}/lib/typist
|
||||
! TARGETDIR=${PREFIX}/bin
|
||||
! MANPATH=${PREFIX}/man
|
||||
# NeXT ONLY!! To make FAT binary.
|
||||
MAB=
|
||||
|
||||
! CFLAGS=$(DEBUG) $(MAB) -DLESSONDIR=\"$(LESSONDIR)\" -DKEYTYPE=\"j\"
|
||||
# -DKEYTYPE=\"e\"
|
||||
# -DLESSONDIR=\"$(LESSONDIR)\"
|
||||
# -DVANISHCHAR
|
||||
--- Makefile.orig Tue May 20 21:41:33 1997
|
||||
+++ Makefile Sun Oct 19 03:09:37 2003
|
||||
@@ -49,18 +49,19 @@
|
||||
|
||||
# following options for SGI IRIX
|
||||
LIBS=-ltermcap
|
||||
-DEBUG=-O -s
|
||||
+#DEBUG=-O -s
|
||||
|
||||
##### INSTALL PARAMETERS #####
|
||||
LIBS=-ltermcap
|
||||
-DEBUG=-O -s
|
||||
-LESSONDIR=/usr/local/lib/typist
|
||||
-TARGETDIR=/usr/local/bin
|
||||
-MANPATH=/usr/local/man
|
||||
+#DEBUG=-O -s
|
||||
+PREFIX?=/usr/local
|
||||
+LESSONDIR=${PREFIX}/lib/typist
|
||||
+TARGETDIR=${PREFIX}/bin
|
||||
+MANPATH=${PREFIX}/man
|
||||
# NeXT ONLY!! To make FAT binary.
|
||||
MAB=
|
||||
|
||||
-CFLAGS=$(DEBUG) $(MAB) -DTERMIO
|
||||
+CFLAGS+=$(DEBUG) $(MAB) -DLESSONDIR=\"$(LESSONDIR)\" -DKEYTYPE=\"j\"
|
||||
# -DKEYTYPE=\"e\"
|
||||
# -DLESSONDIR=\"$(LESSONDIR)\"
|
||||
# -DVANISHCHAR
|
||||
@@ -73,7 +74,7 @@
|
||||
## -DVANISHCHAR if the character after an error vanishes.
|
||||
|
||||
LDFLAGS=$(DEBUG) $(MAB)
|
||||
-CC=cc
|
||||
+CC?=cc
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
|
|
28
korean/nhpf/files/patch-Makefile
Normal file
28
korean/nhpf/files/patch-Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
--- Makefile.orig Sun Oct 19 03:12:14 2003
|
||||
+++ Makefile Sun Oct 19 03:12:40 2003
|
||||
@@ -1,13 +1,13 @@
|
||||
# Makefile for Netscape Hangul PS file filter
|
||||
# Lee yongjae, setup@shiva.snu.ac.kr, 1997.1.22.
|
||||
|
||||
-CC=cc
|
||||
-CFLAG=-O
|
||||
+CC?=cc
|
||||
+CFLAGS?=-O -pipe
|
||||
|
||||
ALL = nhpf wrapstr
|
||||
|
||||
.c.o:
|
||||
- $(CC) $(CFLAG) -c $<
|
||||
+ $(CC) $(CFLAGS) -c $<
|
||||
|
||||
all: $(ALL)
|
||||
clean:
|
||||
@@ -18,7 +18,7 @@
|
||||
rm -f wrapstr
|
||||
|
||||
wrapstr: wrapstr.c
|
||||
- $(CC) $(CFLAG) -o wrapstr wrapstr.c
|
||||
+ $(CC) $(CFLAGS) -o wrapstr wrapstr.c
|
||||
|
||||
nhpf.o: ncode.h fontdef.str n3f-5.str n3f-5b.str
|
||||
|
Loading…
Reference in a new issue