Respect CC/CXX/CFLAGS/CXXFLAGS.

This commit is contained in:
naddy 2002-09-28 23:12:31 +00:00
parent 1f734883ac
commit 7f5612ce8a
2 changed files with 41 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2002/05/03 13:38:43 lebel Exp $
# $OpenBSD: Makefile,v 1.3 2002/09/28 23:12:31 naddy Exp $
COMMENT= "tty-based mail and news client"
@ -6,7 +6,6 @@ VERSION= 0.4.8
DISTNAME= tty-grin-${VERSION}
PKGNAME= ttygrin-${VERSION}
CATEGORIES= mail
NEED_VERSION= 1.507
HOMEPAGE= http://m-net.arbornet.org/~dlbeer/tty-grin/
MASTER_SITES= ${HOMEPAGE}
@ -21,6 +20,7 @@ PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
USE_GMAKE= Yes
MAKE_ENV= CC="${CC}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttygrin ${PREFIX}/bin/ttygrin

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-Makefile,v 1.1 2002/09/28 23:12:31 naddy Exp $
--- Makefile.orig Sun Apr 21 11:25:51 2002
+++ Makefile Sun Sep 29 00:47:06 2002
@@ -1,9 +1,9 @@
-CPP=g++
-CC=gcc
+#CXX=g++
+#CC=gcc
AR=ar
RANLIB=ranlib
-CFLAGS=-O2 -Wall -Iintl -I. -Igrin -Itgws -Ilisp -Iinterpretor \
- -include global.h
+CFLAGS+= -Iintl -I. -Igrin -Itgws -Ilisp -Iinterpretor -include global.h
+CXXFLAGS+= -Iintl -I. -Igrin -Itgws -Ilisp -Iinterpretor -include global.h
OBJ_GRIN=grin/addressbook.o grin/composition.o grin/message.o \
grin/message_descriptor.o grin/mime.o grin/newsgroup.o \
@@ -46,7 +46,7 @@ OBJ_GRINLISP=interpretor/grinlisp.o inte
.SUFFIXES: .cpp .o .c
.cpp.o: $*.cpp
- $(CPP) $(CFLAGS) -o $*.o -c $*.cpp
+ $(CXX) $(CXXFLAGS) -o $*.o -c $*.cpp
.c.o: $*.c
$(CC) $(CFLAGS) -o $*.o -c $*.c
@@ -54,10 +54,10 @@ OBJ_GRINLISP=interpretor/grinlisp.o inte
all: ttygrin
grinlisp: $(OBJ_GRINLISP)
- $(CPP) -o $@ $(OBJ_GRINLISP)
+ $(CXX) -o $@ $(OBJ_GRINLISP)
ttygrin: $(OBJ_TTYGRIN)
- $(CPP) -o $@ $(OBJ_TTYGRIN) -lcurses
+ $(CXX) -o $@ $(OBJ_TTYGRIN) -lcurses
libintl.a: $(OBJ_INTL)
$(AR) cru $@ $(OBJ_INTL)