Make.proto
changeset 56 ad147060273f
parent 39 8948f4f5e216
child 59 450ce95a72a4
--- a/Make.proto	Wed Aug 24 01:40:08 1994 +0200
+++ b/Make.proto	Wed Aug 24 01:40:19 1994 +0200
@@ -1,18 +1,14 @@
-# %W% %E%
-
+# $Header: /cvs/stx/stx/libwidg/Make.proto,v 1.7 1994-08-23 23:40:19 claus Exp $
+#
 # -------------- no need to change anything below ----------
 
 TOP=..
 SUBDIRS=
 
 LIBNAME=libwidg
-LIB=$(LIBNAME).$(A)
 STCOPT=$(LIBWIDG_STCOPT)
 
-all::       $(OBJTARGET)
-
-NEWOBJS= \
-      TextContr.$(O) ETxtContr.$(O)
+all::       abbrev.stc objs classList.stc $(OBJTARGET)
 
 #
 # some of them (FramedBox and below) should go to libwidg2,
@@ -78,22 +74,17 @@
 	    FSaveBox.$(O)		   \
 	    ErrNotify.$(O)
 
-install::
-	    -mkdir $(DESTLIBDIR)
-	    -$(INSTALL) $(LIBNAME)$(OBJNAME) $(DESTLIBDIR)
-
-qinstall::
-	    -mkdir $(DESTLIBDIR)
-	    -$(INSTALL) $(LIBNAME)$(OBJNAME) $(DESTLIBDIR)
+classList.stc:	Make.proto
+		$(MAKE) genClassList
 
 cleanjunk::
-	    -rm -f *.c *.H bitmaps/*~ bitmaps/*.old resources/*.old
+	    -rm -f *.c *.H
 
 clean::
-	    -rm -f *.c *.H bitmaps/*~ bitmaps/*.old resources/*.old
+	    -rm -f *.c *.H classList.stc abbrev.stc
 
 clobber::
-	    -rm -f *.c *.H bitmaps/*~ bitmaps/*.old resources/*.old
+	    -rm -f *.c *.H classList.stc abbrev.stc
 
 tar:
 	rm -f $(TOP)/DISTRIB/libwidg.tar*
@@ -104,22 +95,26 @@
 			        libwidg/bitmaps)
 	compress $(TOP)/DISTRIB/libwidg.tar
 
-objs::      $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h
-
-Workspace.o:
-	    $(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
+#
+# these nest too deep on some systems (see discussion about LIMITSUPERINCLUDE
+# in configurations/COMMON/defines
+#
+WORKSPACE:
+	    $(MAKE) Workspace.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
 
-CodeView.o:
-	    $(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
+CODEVIEW:
+	    $(MAKE) CodeView.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
 
-RButton.o:
-	    $(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
+RBUTTON:
+	    $(MAKE) RButton.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
 
-I	= $(INCLUDE)
 #
 # next thing I'll build into stc is a makedepend feature for this ...
 #
+I= $(INCLUDE)
 STCHDR=$(I)/stc.h $(I)/stcIntern.h
+objs::      $(STDHDR)
+
 # OBJECT=$(I)/Object.H $(STCHDR)
 
 DEVDRAWABLE=$(I)/DevDraw.H $(I)/DMedium.H $(I)/GC.H $(OBJECT)