Make.proto
changeset 16 db5d473df9f0
parent 15 6cb30063ea41
child 21 30eaa11da086
equal deleted inserted replaced
15:6cb30063ea41 16:db5d473df9f0
    32 #
    32 #
    33 # directories from which bitmap files in bitmap subdirectories are to be symlinked
    33 # directories from which bitmap files in bitmap subdirectories are to be symlinked
    34 # to the bitmaps subdirectory
    34 # to the bitmaps subdirectory
    35 #
    35 #
    36 BITMAPDIRS= \
    36 BITMAPDIRS= \
    37 	$(LIBBASIC2DIR) $(LIBVIEWDIR) $(LIBWIDGDIR) 				\
    37 	$(LIBBASIC2DIR) $(LIBVIEWDIR) $(LIBWIDGDIR) $(LIBWIDG2DIR)              \
    38 	$(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]* 	\
    38 	$(LIBWIDG3DIR) $(LIBTABLEDIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]*         \
    39 	$(OTHERLIBDIRS)								\
    39 	$(OTHERLIBDIRS)                                                         \
    40 	$(TOP)/fileIn $(TOP)/fileIn/* $(TOP)/libtomcat $(TOP)/goodies 		\
    40 	$(TOP)/fileIn $(TOP)/fileIn/* $(TOP)/libtomcat $(TOP)/goodies           \
    41 	$(TOP)/goodies/* $(TOP)/goodies/*/*
    41 	$(TOP)/goodies/* $(TOP)/goodies/*/*
    42 
    42 
    43 #
    43 #
    44 # directories from which binary files are to be symlinked 
    44 # directories from which binary files are to be symlinked 
    45 # to the binary subdirectory
    45 # to the binary subdirectory
    46 #
    46 #
    47 BINARYDIRS= \
    47 BINARYDIRS= \
    48 	$(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBVIEWDIR) $(LIBWIDGDIR) 		\
    48 	$(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBVIEWDIR) $(LIBWIDGDIR)              \
    49 	$(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]* 	\
    49 	$(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]*         \
    50 	$(LIBCOMPDIR) $(OTHERLIBDIRS)						\
    50 	$(LIBCOMPDIR) $(LIBTABLEDIR) $(OTHERLIBDIRS)                            \
    51 	$(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/*		\
    51 	$(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/*          \
    52 	$(TOP)/goodies/*/*
    52 	$(TOP)/goodies/*/*
    53 
    53 
    54 #
    54 #
    55 # directories from which source files are to be symlinked 
    55 # directories from which source files are to be symlinked 
    56 # to the source subdirectory
    56 # to the source subdirectory
    57 #
    57 #
    58 SOURCEDIRS= \
    58 SOURCEDIRS= \
    59         $(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBCOMPDIR) $(LIBVIEWDIR) $(LIBWIDGDIR) \
    59 	$(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBCOMPDIR) $(LIBVIEWDIR) $(LIBWIDGDIR) \
    60         $(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]*          \
    60 	$(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]*          \
    61         $(OTHERLIBDIRS)                                                          \
    61 	$(LIBTABLEDIR) $(OTHERLIBDIRS)                                           \
    62         $(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/*           \
    62 	$(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/*           \
    63         $(TOP)/goodies/*/*
    63 	$(TOP)/goodies/*/*
    64 
    64 
    65 #
    65 #
    66 # including your own private lib in the make process and executable:
    66 # including your own private lib in the make process and executable:
    67 #
    67 #
    68 # for example, if you have a libprivate directory,
    68 # for example, if you have a libprivate directory,
   147 
   147 
   148 classList.stc:  Makefile
   148 classList.stc:  Makefile
   149 	    @-rm classList.stc classList.c
   149 	    @-rm classList.stc classList.c
   150 	    @$(MAKE) GENERICLIST CLASSLIST=classList.stc        \
   150 	    @$(MAKE) GENERICLIST CLASSLIST=classList.stc        \
   151 		EXTRA_CLASSES="$(EXTRA_CLASSES)"                \
   151 		EXTRA_CLASSES="$(EXTRA_CLASSES)"                \
   152 		LIBLIST="$(LIBLIST)"				\
   152 		LIBLIST="$(LIBLIST)"                            \
   153 		CLASSLIBRARIES="                                \
   153 		CLASSLIBRARIES="                                \
   154 		    $(LIBLIST)                                  \
   154 		    $(LIBLIST)                                  \
   155 		    $(OTHERLIBRARIES)                           \
   155 		    $(OTHERLIBRARIES)                           \
   156 		"                                               \
   156 		"                                               \
   157 		CLASSLISTS="                                    \
   157 		CLASSLISTS="                                    \
   160 		"
   160 		"
   161 
   161 
   162 #
   162 #
   163 # dont want this abbrev.stc be included ...
   163 # dont want this abbrev.stc be included ...
   164 #
   164 #
       
   165 abbrev.stc::
       
   166 	    -rm ttt*.*
       
   167 
   165 collectAbbrev::
   168 collectAbbrev::
   166 	    -rm abbrev.stc
   169 	    -rm abbrev.stc
   167 
   170 
   168 #
   171 #
   169 # make a new source subdirectory
   172 # make a new source subdirectory
   183 newInclude:
   186 newInclude:
   184 	    -rm -rf include
   187 	    -rm -rf include
   185 	    $(MAKE) include
   188 	    $(MAKE) include
   186 
   189 
   187 include:
   190 include:
       
   191 	    -rm ttt*.H
   188 	    -mkdir include
   192 	    -mkdir include
   189 	    -(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .)
   193 	    -(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .)
   190 	    -if [ -f $(INCLUDE)/symbols.stc ]; then			\
   194 	    -if [ -f $(INCLUDE)/symbols.stc ]; then                     \
   191 	        (cd include; $(LNS) ../$(INCLUDE)/symbols.stc .);	\
   195 		(cd include; $(LNS) ../$(INCLUDE)/symbols.stc .);       \
   192 	     fi
   196 	     fi
   193 	    rm -f include/RCS
   197 	    rm -f include/RCS
   194 
   198 
   195 misc:       examples
   199 misc:       examples
   196 
   200 
   229 #
   233 #
   230 cleanjunk::
   234 cleanjunk::
   231 	    -rm -f a.out changes SymbolTable ttt main.c
   235 	    -rm -f a.out changes SymbolTable ttt main.c
   232 	    -rm -f classList.c fclassList.c nxclassList.c basicclassList.c
   236 	    -rm -f classList.c fclassList.c nxclassList.c basicclassList.c
   233 	    -rm -f betaclassList.c miniList.c tinyList.c
   237 	    -rm -f betaclassList.c miniList.c tinyList.c
       
   238 	    -rm -f pers* pers2 data data2 data.boss tetris.scores
   234 
   239 
   235 #
   240 #
   236 # clean out all that is not needed to run smalltalk
   241 # clean out all that is not needed to run smalltalk
   237 #
   242 #
   238 clean::
   243 clean::
   242 	    -rm -f nxclassList.stc nxclassList.c
   247 	    -rm -f nxclassList.stc nxclassList.c
   243 	    -rm -f basicclassList.stc basicclassList.c
   248 	    -rm -f basicclassList.stc basicclassList.c
   244 	    -rm -f betaclassList.stc betaclassList.c
   249 	    -rm -f betaclassList.stc betaclassList.c
   245 	    -rm -f miniList.stc miniList.c
   250 	    -rm -f miniList.stc miniList.c
   246 	    -rm -f tinyList.stc tinyList.c
   251 	    -rm -f tinyList.stc tinyList.c
       
   252 	    -rm -f pers pers2 data data2 data.boss tetris.scores
       
   253 	    -rm -f st.img st2.img
   247 
   254 
   248 #
   255 #
   249 # clean out all that can be regenerated
   256 # clean out all that can be regenerated
   250 #
   257 #
   251 clobber::
   258 clobber::
   260 	    rm -rf resources
   267 	    rm -rf resources
   261 	    $(MAKE) resources styles
   268 	    $(MAKE) resources styles
   262 
   269 
   263 resources: 
   270 resources: 
   264 	    -mkdir resources
   271 	    -mkdir resources
       
   272 	    $(MAKE) resourceLink
       
   273 resourceLink: 
   265 	    -if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \
   274 	    -if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \
   266 		(cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .);                       \
   275 		(cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .);                       \
   267 		rm -f resources/RCS;                                                          \
   276 		rm -f resources/RCS;                                                          \
   268 	    fi
   277 	    fi
   269 	    -if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then   \
   278 	    -if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then   \
   282 		(cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .);                       \
   291 		(cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .);                       \
   283 		rm -f resources/RCS;                                                          \
   292 		rm -f resources/RCS;                                                          \
   284 	    fi
   293 	    fi
   285 	    -if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then   \
   294 	    -if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then   \
   286 		(cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .);                        \
   295 		(cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .);                        \
       
   296 		rm -f resources/RCS;                                                          \
       
   297 	    fi
       
   298 	    -if [ "`echo $(LIBTABLEDIR)/resources/*`" != '$(LIBTABLEDIR)/resources/*' ]; then \
       
   299 		(cd resources; $(LNS) ../$(LIBTABLEDIR)/resources/* .);                       \
   287 		rm -f resources/RCS;                                                          \
   300 		rm -f resources/RCS;                                                          \
   288 	    fi
   301 	    fi
   289 	    -if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then   \
   302 	    -if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then   \
   290 		(cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .);                        \
   303 		(cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .);                        \
   291 		rm -f resources/RCS;                                                          \
   304 		rm -f resources/RCS;                                                          \