Make.proto
changeset 9703 98a000fa7f07
parent 9701 048d1855b537
child 9715 49b9e18d7684
--- a/Make.proto	Thu Aug 24 13:34:56 2006 +0200
+++ b/Make.proto	Thu Aug 24 13:47:51 2006 +0200
@@ -1,89 +1,93 @@
-# $Header: /cvs/stx/stx/libbasic/Make.proto,v 1.177 2006-08-24 10:59:19 cg Exp $
+# $Header: /cvs/stx/stx/libbasic/Make.proto,v 1.178 2006-08-24 11:47:51 cg Exp $
+#
+# DO NOT EDIT 
+# automagically generated from the projectDefinition: stx_libbasic.
 #
-# -------------- no need to change anything below ----------
-
-TOP=..
-SUBDIRS=
-
-LIB_BASE=$(LIBBASIC_BASE)
-NM_LIB_BASE=LIBBASIC_BASE
-
-STCOPT=$(LIBBASIC_STCOPT)
-LOCALINCLUDES=-I../librun
-STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME) $(LOCALINCLUDES)
-LINKOBJRULE=$(SEPINITLINKOBJRULE)
-
-AIX_LOCAL_LIBS=-lm
-
-all::   classLibRule
-
-EXTERNALSTREAM=$(OUTDIR)ExternalStream.$(O)
-
-dbg:
-	$(MAKE) STCLOCALOPT="$(STCLOCALOPT) -lineInfo" OPT=-g
-
-dbgs:
-	$(MAKE) STCLOCALOPT="$(STCLOCALOPT) -lineInfo" OPT=-g Smalltalk.c
-
+# Warning: once you modify this file, do not rerun
+# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
 #
-# only needed for NeXT (2.1) - assembler dumps core with long name ?!?!
-#
-SeqColl.$(O):
-	@$(MAKE) $(LONGNAME_RULE) LONGNAME_FILE=$* OPT="$(OPT)" CC="$(CC)"
-
+# The Makefile as generated by this Make.proto supports the following targets:
+#    make         - compile all st-files to a classLib
+#    make clean   - clean all temp files
+#    make clobber - clean all
 #
-# on AIX, Object and Class cannot be compiled with -O2
-# (CC running out of space)
-#
-#AIX::
-#       $(MAKE) Object.o         OPT= 
-#       $(MAKE) Behavior.o
-#       $(MAKE) ClassDescr.o
-#       $(MAKE) Class.o          OPT= 
+# This file contains definitions for Unix based platforms.
 
 #
-# on HP, big classes blow the C-preprocessor (stops with 'too much defining' error)
-#
-#HP::   HPbigFiles
+# position (of this package) in directory hierarchy:
+# (must point to ST/X top directory, for tools and includes)
+TOP=../../stx
+
+
+# subdirectories where targets are to be made:
+SUBDIRS=
+
+
+# subdirectories where Makefiles are to be made:
+# (only define if different from SUBDIRS)
+# ALLSUBDIRS=
+
+
+# if your embedded C code requires any system includes, 
+# add the path(es) here:, 
+# ********** OPTIONAL: MODIFY the next lines ***
+# LOCALINCLUDES=-Ifoo -Ibar
+LOCALINCLUDES=-I../librun
+
+
+# if you need any additional defines for embedded C code, 
+# add them here:, 
+# ********** OPTIONAL: MODIFY the next lines ***
+# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
+LOCALDEFINES=
+
+
+STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -H$(INCLUDE) $(COMMONSYMBOLS) -varPrefix=$(LIBNAME)
+
 
-#HPbigFiles: abbrev.stc
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Object CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) Behavior.$(O)
-#       $(MAKE) ClassDescr.$(O)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Class CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Metaclass CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) Coll.$(O)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SeqColl CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) ArrayedCollection.$(O)
-#       $(MAKE) ByteArray.$(O)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=CharArray CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Smalltalk CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
-#       $(MAKE) Stream.$(O)
-#       $(MAKE) PeekStr.$(O)
-#       $(MAKE) PosStream.$(O)
-#       $(MAKE) ReadStr.$(O)
-#       $(MAKE) WriteStr.$(O)
-#       $(MAKE) RWStream.$(O)
-#       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=ExtStream CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
+# ********** OPTIONAL: MODIFY the next line ***
+# additional C-libraries that should be pre-linked with the class-objects
+LD_OBJ_LIBS=
+
+
+# ********** OPTIONAL: MODIFY the next line ***
+# additional C targets or libraries should be added below
+LOCAL_EXTRA_TARGETS=
+
+OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
+
+
+
+all:: preMake classLibRule postMake
 
-#
-# special rule, to define the config-string while compiling
-# this places the current config setting into the Smalltalk class binary
-#
-#CONF_STRING="$(CONF) / $(CONF_PACKS)"
+pre_objs:: 
+
+
+
+# add more install actions here
+install::
 
-#Smalltalk.$(O):
-#       $(STC) -CC="$(CC)" $(STCFLAGS) $(CFLAGS) -DCONFIGURATION_STRING='\"$(CONF_STRING)\"' -c Smalltalk.st
-#       @$(TOUCH) $*.$(O)
+# add more install actions for aux-files (resources) here
+installAux::
+
+# add more preMake actions here
+preMake::
+
+# add more postMake actions here
+postMake:: cleanjunk
 
 cleanjunk::
-	@-rm -f [A-Z]*.c [A-Z]*.H [A-Z]*.s i_[A-Z]*.s i_[A-Z]*.c *.s2 
 
 clean::
-	@-rm -f [A-Z]*.o [A-Z]*.c [A-Z]*.s i_[A-Z]*.s i_[A-Z]*.c *.s2 *.H
+	-rm -f *.o *.H
 
 clobber::
-	@-rm -f *.c [A-Z]*.c [A-Z]*.s i_[A-Z]*.c i_[A-Z]*.s *.H abbrev.stc classList.stc
+	-rm -f *.so *.dll
+
 
+# 'make depend' will add dependency info between
+# BEGIN...END below
+#
 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
-# ENDMAKEDEPEND --- do not remove this line; make depend needs it
+# ENDMAKEDEPEND --- do not remove this line
+