1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/cocor/files/patch-cplus2::unix.mk
Edwin Groothuis 3dbac872ab New port: lang/cocor (Coco/R, a compiler generator)
Coco/R is a recursive decent compiler generator.  This is
	a FreeBSD port of the C/C++ version of Coco/R.

PR:		ports/36251
Submitted by:	Guy Antony Halse <guy@rucus.ru.ac.za>
2003-01-18 10:12:08 +00:00

31 lines
555 B
Makefile

--- cplus2/unix.mk.orig Sat Nov 20 22:27:41 1999
+++ cplus2/unix.mk Sat Jan 18 01:55:19 2003
@@ -11,16 +11,16 @@
#CC sets the name of the compiler to use (cc, gcc, etc)
#You will have to change this to suit your system
-#CC = g++
+CC = ${CXX}
AR = ar
CFLAGS = -g
DOS2UNIX = ../dos2unix.sh
-%.o: %.cpp
+*.o: *.cpp
$(CC) -c $(CFLAGS) $< -o $@
-%.o: %.cxx
+*.o: *.cxx
$(CC) -c $(CFLAGS) $< -o $@
all: cr_lib.a
@@ -45,4 +45,7 @@
clean:
\rm -f *.o
\rm -f *.a
+
+
+