Allow to define primary make target (needed, if sub.makes have to be performed -
authorStefan Vogel <sv@exept.de>
Tue, 17 Feb 2009 10:44:10 +0100
changeset 11577 d9ad27e7ca5e
parent 11576 8b244e994b96
child 11578 30909b044a03
Allow to define primary make target (needed, if sub.makes have to be performed - see libdb/odbc/Make.proto)
LibraryDefinition.st
--- a/LibraryDefinition.st	Tue Feb 17 10:43:58 2009 +0100
+++ b/LibraryDefinition.st	Tue Feb 17 10:44:10 2009 +0100
@@ -43,6 +43,14 @@
     "Modified: / 18-08-2006 / 16:22:49 / cg"
 ! !
 
+!LibraryDefinition class methodsFor:'description - compilation'!
+
+primaryTarget
+    "the primary make target in Make.proto/bc.mak"
+
+    ^ 'classLibRule'
+! !
+
 !LibraryDefinition class methodsFor:'description - project information'!
 
 description
@@ -171,7 +179,9 @@
 
 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
 
-ALL:: %(ADDITIONAL_TARGETS) $(BINDIR)\$(LIBNAME).dll
+ALL:: %(ADDITIONAL_TARGETS) %(PRIMARY_TARGET)
+
+classLibRule: $(BINDIR)\$(LIBNAME).dll
 
 !!INCLUDE $(TOP)\rules\stdRules_bc
 
@@ -300,7 +310,7 @@
 
 %(ADDITIONAL_DEFINITIONS)
 
-all:: preMake classLibRule postMake
+all:: preMake %(PRIMARY_TARGET) postMake
 
 pre_objs:: %(ADDITIONAL_TARGETS)
 
@@ -610,5 +620,5 @@
 !LibraryDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.85 2009-02-16 09:46:56 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.86 2009-02-17 09:44:10 stefan Exp $'
 ! !