Make.proto
changeset 9703 98a000fa7f07
parent 9701 048d1855b537
child 9715 49b9e18d7684
equal deleted inserted replaced
9702:468675f92260 9703:98a000fa7f07
     1 # $Header: /cvs/stx/stx/libbasic/Make.proto,v 1.177 2006-08-24 10:59:19 cg Exp $
     1 # $Header: /cvs/stx/stx/libbasic/Make.proto,v 1.178 2006-08-24 11:47:51 cg Exp $
     2 #
     2 #
     3 # -------------- no need to change anything below ----------
     3 # DO NOT EDIT 
       
     4 # automagically generated from the projectDefinition: stx_libbasic.
       
     5 #
       
     6 # Warning: once you modify this file, do not rerun
       
     7 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
       
     8 #
       
     9 # The Makefile as generated by this Make.proto supports the following targets:
       
    10 #    make         - compile all st-files to a classLib
       
    11 #    make clean   - clean all temp files
       
    12 #    make clobber - clean all
       
    13 #
       
    14 # This file contains definitions for Unix based platforms.
     4 
    15 
     5 TOP=..
    16 #
       
    17 # position (of this package) in directory hierarchy:
       
    18 # (must point to ST/X top directory, for tools and includes)
       
    19 TOP=../../stx
       
    20 
       
    21 
       
    22 # subdirectories where targets are to be made:
     6 SUBDIRS=
    23 SUBDIRS=
     7 
    24 
     8 LIB_BASE=$(LIBBASIC_BASE)
       
     9 NM_LIB_BASE=LIBBASIC_BASE
       
    10 
    25 
    11 STCOPT=$(LIBBASIC_STCOPT)
    26 # subdirectories where Makefiles are to be made:
       
    27 # (only define if different from SUBDIRS)
       
    28 # ALLSUBDIRS=
       
    29 
       
    30 
       
    31 # if your embedded C code requires any system includes, 
       
    32 # add the path(es) here:, 
       
    33 # ********** OPTIONAL: MODIFY the next lines ***
       
    34 # LOCALINCLUDES=-Ifoo -Ibar
    12 LOCALINCLUDES=-I../librun
    35 LOCALINCLUDES=-I../librun
    13 STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME) $(LOCALINCLUDES)
       
    14 LINKOBJRULE=$(SEPINITLINKOBJRULE)
       
    15 
    36 
    16 AIX_LOCAL_LIBS=-lm
       
    17 
    37 
    18 all::   classLibRule
    38 # if you need any additional defines for embedded C code, 
       
    39 # add them here:, 
       
    40 # ********** OPTIONAL: MODIFY the next lines ***
       
    41 # LOCALDEFINES=-Dfoo -Dbar -DDEBUG
       
    42 LOCALDEFINES=
    19 
    43 
    20 EXTERNALSTREAM=$(OUTDIR)ExternalStream.$(O)
       
    21 
    44 
    22 dbg:
    45 STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -H$(INCLUDE) $(COMMONSYMBOLS) -varPrefix=$(LIBNAME)
    23 	$(MAKE) STCLOCALOPT="$(STCLOCALOPT) -lineInfo" OPT=-g
       
    24 
    46 
    25 dbgs:
       
    26 	$(MAKE) STCLOCALOPT="$(STCLOCALOPT) -lineInfo" OPT=-g Smalltalk.c
       
    27 
    47 
    28 #
    48 # ********** OPTIONAL: MODIFY the next line ***
    29 # only needed for NeXT (2.1) - assembler dumps core with long name ?!?!
    49 # additional C-libraries that should be pre-linked with the class-objects
    30 #
    50 LD_OBJ_LIBS=
    31 SeqColl.$(O):
       
    32 	@$(MAKE) $(LONGNAME_RULE) LONGNAME_FILE=$* OPT="$(OPT)" CC="$(CC)"
       
    33 
    51 
    34 #
       
    35 # on AIX, Object and Class cannot be compiled with -O2
       
    36 # (CC running out of space)
       
    37 #
       
    38 #AIX::
       
    39 #       $(MAKE) Object.o         OPT= 
       
    40 #       $(MAKE) Behavior.o
       
    41 #       $(MAKE) ClassDescr.o
       
    42 #       $(MAKE) Class.o          OPT= 
       
    43 
    52 
    44 #
    53 # ********** OPTIONAL: MODIFY the next line ***
    45 # on HP, big classes blow the C-preprocessor (stops with 'too much defining' error)
    54 # additional C targets or libraries should be added below
    46 #
    55 LOCAL_EXTRA_TARGETS=
    47 #HP::   HPbigFiles
       
    48 
    56 
    49 #HPbigFiles: abbrev.stc
    57 OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
    50 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Object CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    51 #       $(MAKE) Behavior.$(O)
       
    52 #       $(MAKE) ClassDescr.$(O)
       
    53 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Class CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    54 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Metaclass CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    55 #       $(MAKE) Coll.$(O)
       
    56 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SeqColl CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    57 #       $(MAKE) ArrayedCollection.$(O)
       
    58 #       $(MAKE) ByteArray.$(O)
       
    59 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=CharArray CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    60 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Smalltalk CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    61 #       $(MAKE) Stream.$(O)
       
    62 #       $(MAKE) PeekStr.$(O)
       
    63 #       $(MAKE) PosStream.$(O)
       
    64 #       $(MAKE) ReadStr.$(O)
       
    65 #       $(MAKE) WriteStr.$(O)
       
    66 #       $(MAKE) RWStream.$(O)
       
    67 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=ExtStream CC=$(CC) OPT="$(OPT)" SEPINITCODE=$(SEPINITCODE)
       
    68 
    58 
    69 #
       
    70 # special rule, to define the config-string while compiling
       
    71 # this places the current config setting into the Smalltalk class binary
       
    72 #
       
    73 #CONF_STRING="$(CONF) / $(CONF_PACKS)"
       
    74 
    59 
    75 #Smalltalk.$(O):
    60 
    76 #       $(STC) -CC="$(CC)" $(STCFLAGS) $(CFLAGS) -DCONFIGURATION_STRING='\"$(CONF_STRING)\"' -c Smalltalk.st
    61 all:: preMake classLibRule postMake
    77 #       @$(TOUCH) $*.$(O)
    62 
       
    63 pre_objs:: 
       
    64 
       
    65 
       
    66 
       
    67 # add more install actions here
       
    68 install::
       
    69 
       
    70 # add more install actions for aux-files (resources) here
       
    71 installAux::
       
    72 
       
    73 # add more preMake actions here
       
    74 preMake::
       
    75 
       
    76 # add more postMake actions here
       
    77 postMake:: cleanjunk
    78 
    78 
    79 cleanjunk::
    79 cleanjunk::
    80 	@-rm -f [A-Z]*.c [A-Z]*.H [A-Z]*.s i_[A-Z]*.s i_[A-Z]*.c *.s2 
       
    81 
    80 
    82 clean::
    81 clean::
    83 	@-rm -f [A-Z]*.o [A-Z]*.c [A-Z]*.s i_[A-Z]*.s i_[A-Z]*.c *.s2 *.H
    82 	-rm -f *.o *.H
    84 
    83 
    85 clobber::
    84 clobber::
    86 	@-rm -f *.c [A-Z]*.c [A-Z]*.s i_[A-Z]*.c i_[A-Z]*.s *.H abbrev.stc classList.stc
    85 	-rm -f *.so *.dll
    87 
    86 
       
    87 
       
    88 # 'make depend' will add dependency info between
       
    89 # BEGIN...END below
       
    90 #
    88 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
    91 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
    89 # ENDMAKEDEPEND --- do not remove this line; make depend needs it
    92 # ENDMAKEDEPEND --- do not remove this line
       
    93