386BSD 0.0 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sun, 9 Feb 1992 05:40:36 +0000 (21:40 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Sun, 9 Feb 1992 05:40:36 +0000 (21:40 -0800)
Work on file usr/src/usr.bin/groff/Makefile.g++

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.0/src

usr/src/usr.bin/groff/Makefile.g++ [new file with mode: 0644]

diff --git a/usr/src/usr.bin/groff/Makefile.g++ b/usr/src/usr.bin/groff/Makefile.g++
new file mode 100644 (file)
index 0000000..a954c57
--- /dev/null
@@ -0,0 +1,23 @@
+#      @(#)Makefile.g++        6.2 (Berkeley) 3/3/91
+
+#
+# Define g++ compilation rules.
+#
+
+GXX=           g++
+GXXFLAGS=      -O -felide-constructors
+LDXX=          /usr/libexec/ld++
+# Temporary, to achieve linking
+CC=            g++
+
+.SUFFIXES: .cc
+
+.cc.o:
+       $(GXX) $(GXXFLAGS) -c $(.IMPSRC)
+
+.y.o:
+       $(YACC) $(YFLAGS) $(.IMPSRC)
+       mv y.tab.c $(.PREFIX).cc
+       mv y.tab.h $(.PREFIX).tab.h
+       $(GXX) $(GXXFLAGS) -c $(.PREFIX).cc
+       -rm -f $(.PREFIX).cc