diff options
Diffstat (limited to 'lang/cocor/files/patch-taste_cp__unix.mk')
-rw-r--r-- | lang/cocor/files/patch-taste_cp__unix.mk | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/lang/cocor/files/patch-taste_cp__unix.mk b/lang/cocor/files/patch-taste_cp__unix.mk new file mode 100644 index 000000000000..436111d962ef --- /dev/null +++ b/lang/cocor/files/patch-taste_cp__unix.mk @@ -0,0 +1,51 @@ +--- taste_cp/unix.mk.orig 1999-11-21 15:34:48.000000000 +0900 ++++ taste_cp/unix.mk 2010-01-26 03:48:40.000000000 +0900 +@@ -8,17 +8,17 @@ + + #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} + +-CFLAGS = -g -I../cplus2 ++CFLAGS = -I../cplus2 ${CXXFLAGS} + COCOR = ../cocor + DOS2UNIX = ../dos2unix.sh + LIB = ../cplus2/cr_lib.a + +-%.o: %.cpp ++.cpp.o: + $(CC) -c $(CFLAGS) $< -o $@ + +-%.o: %.cxx ++.cxx.o: + $(CC) -c $(CFLAGS) $< -o $@ + + all: taste pretty xref +@@ -38,7 +38,7 @@ + $(CC) $(CFLAGS) -otaste taste.o tl.o tc.o\ + tastes.o tastep.o $(LIB) + +-tastep.o: taste.atg ++tastep.o taste.o: taste.atg + $(COCOR) taste.atg + $(CC) $(CFLAGS) -c taste.c?? tastep.c?? tastes.c?? + +@@ -46,7 +46,7 @@ + $(CC) $(CFLAGS) -opretty pretty.o prettypr.o \ + prettys.o prettyp.o $(LIB) + +-prettyp.o: pretty.atg ++prettyp.o pretty.o: pretty.atg + $(COCOR) pretty.atg + $(CC) $(CFLAGS) -c pretty.c?? prettyp.c?? prettys.c?? + +@@ -54,7 +54,7 @@ + $(CC) $(CFLAGS) -oxref xref.o crossref.o \ + xrefs.o xrefp.o $(LIB) + +-xrefp.o: xref.atg ++xrefp.o xref.o: xref.atg + $(COCOR) xref.atg + $(CC) $(CFLAGS) -c xref.c?? xrefp.c?? xrefs.c?? + |