Make.proto
author Claus Gittinger <cg@exept.de>
Wed, 09 Nov 2005 15:55:16 +0100
changeset 666 b99465caf959
parent 640 6827ded1a510
child 703 88c6e68c37f5
permissions -rw-r--r--
Makefile -> makefile
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
     1
#
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
     2
# $Header$
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
     3
#
0cb137a77319 Initial revision
claus
parents:
diff changeset
     4
# -------------- no need to change anything below ----------
135
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
     5
#
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
     6
# This makefile generates the smalltalk executable itself;
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
     7
# it can be invoked as:
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
     8
#
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
     9
#    make
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    10
#       generates a standard smalltalk, and sets up symbolic links
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    11
#       for local execution.
135
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    12
#
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    13
#    make smalltalk
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    14
#       generates a standard smalltalk executable only
135
2fcce731d195 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 134
diff changeset
    15
#
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    16
#    make smalltalk ADDITIONAL_OBJS=<list of object files> \
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    17
#                   ADDITIONAL_CLASSES=<list of class names>
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    18
#       generates a customized executable, containing additional
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    19
#       class (list of classes) which are to be found in the object
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    20
#       files (list of object files).
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    21
#       Example:
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    22
#           make smalltalk ADDITIONAL_OBJS=Foo.o ADDITIONAL_CLASSES=Foo
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    23
#
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    24
# No longer maintained (make could fail):
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    25
#
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    26
#    make stx_static (ELF based systems only):
189
a203bdd43dd3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 187
diff changeset
    27
#       generates a smalltalk with statically linked
a203bdd43dd3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 187
diff changeset
    28
#       class libs. (still uses dynamic unix libraries)
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    29
#
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    30
#    make stx_fullstatic (ELF based systems only):
189
a203bdd43dd3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 187
diff changeset
    31
#       generates a fully statically linked smalltalk
a203bdd43dd3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 187
diff changeset
    32
#       (even system libs are linked in)
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
    33
#
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
    34
7
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
    35
TOP=../..
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
    36
SUBDIRS=
384
e516fa60a3f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 383
diff changeset
    37
SUPPRESS_LOCAL_ABBREVS="yes"
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    38
#
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    39
# these are installed when installing their
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    40
# package dir ...
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    41
#
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    42
SUPPRESS_INSTALL_BITMAPS="yes"
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    43
SUPPRESS_INSTALL_RESOURCES="yes"
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    44
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    45
INSTALLBIN_DIR=$(INSTALLBASE)/bin
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
    46
INSTALLLIB_DIR=$(INSTALLBASE)/lib
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
    47
13
4a4fa9e1500d *** empty log message ***
claus
parents: 11
diff changeset
    48
RCSSOURCES=*.rc patches Make.proto
26
Claus Gittinger <cg@exept.de>
parents: 25
diff changeset
    49
LINKSOURCES=*.rc patches Make.proto
13
4a4fa9e1500d *** empty log message ***
claus
parents: 11
diff changeset
    50
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
    51
DELIVERBINARIES=stx
71
d928da24eaec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    52
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
    53
#
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
    54
# other definitions to use for things compiled here
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
    55
#
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
    56
LOCALDEFS=-DDEBUG
488
521e2d58f050 Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents: 486
diff changeset
    57
#ST_LDFLAG=
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
    58
259
a5e174f1ee6d do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents: 248
diff changeset
    59
# st files found here wont go into the global abbrev list
a5e174f1ee6d do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents: 248
diff changeset
    60
SUPPRESS_LOCAL_ABBREVS=1
a5e174f1ee6d do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents: 248
diff changeset
    61
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
    62
#
7
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
    63
# this defines where the show starts
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
    64
#
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
    65
STARTUP_CLASS="Smalltalk"
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
    66
STARTUP_SELECTOR="start"
0cb137a77319 Initial revision
claus
parents:
diff changeset
    67
10
43d0db9ff204 *** empty log message ***
claus
parents: 9
diff changeset
    68
#
11
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
    69
# including your own private lib in the make process and executable:
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
    70
#
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
    71
# for example, if you have a libprivate directory,
11
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
    72
# where libprivate.obj is built, and that one should be included,
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
    73
# add lines as below to your configuration/.../defines file:
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
    74
#    PRIVATEOBJ=$(TOP)/libprivate/libprivate.obj
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
    75
#    PRIVATE_SO=$(TOP)/libprivate/libprivate.so
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
    76
#    PRIVATELIBS=libprivate
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
    77
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    78
# This defines which library packages are linked in.
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    79
# See COMMON/defines for what those XXX_LIB etc. are
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    80
#
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    81
# MINI_LIB        = libbasic, libcomp $(PRIVATELIBS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    82
# FUNDAMENTAL_LIB = above PLUS libview, libwidg
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    83
# DEVELOP_LIB     = above PLUS libtool refactoring
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    84
# STANDARD_LIB    = above PLUS libwidg2, libdbase
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    85
# EXTENDED_LIB    = above PLUS libwidg3
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    86
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    87
CLASSLIBDIRS    =   $(STANDARD_DIR) $(PRIVATE_CLASSLIBDIRS) $(ARCH_CLASSLIBDIRS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    88
LIBOBJS         =   $(STANDARD_LIB) $(PRIVATE_OBJS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    89
LINK_LIBOBJS    =   $(LINK_STANDARD_LIB) $(PRIVATE_OBJS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    90
STATIC_LIBOBJS  =   $(STATIC_STANDARD_LIB) $(PRIVATE_OBJS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    91
LIBLIST         =   $(STANDARD_LIST) $(PRIVATE_LIBS)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    92
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    93
WORKSTAT1       =   XWorkstation
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    94
WORKSTAT2       =   GLXWorkstation
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
    95
EXTRA_UI_CLASSES=   $(WORKSTAT1) $(WORKSTAT2)
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    96
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
    97
EXTRA_UI_OBJ=\
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    98
	$(OPTIONAL_XWORKSTATION_OBJ)   \
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
    99
	$(OPTIONAL_GLXWORKSTATION_OBJ)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   100
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   101
STATIC_EXTRA_UI_OBJ=\
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   102
	$(STATIC_OPTIONAL_XWORKSTATION_OBJ) \
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   103
	$(STATIC_OPTIONAL_GLXWORKSTATION_OBJ)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   104
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   105
EXTRA_LINK_UI_OBJ=\
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   106
	$(OPTIONAL_LINK_XWORKSTATION_OBJ)   \
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   107
	$(OPTIONAL_LINK_GLXWORKSTATION_OBJ)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   108
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   109
OPTIONAL_LIBGL_TARGET   =   $(LIB_GL_TARGET)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   110
OPTIONAL_GL_LIB         =   $(LIB_GL)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   111
OPTIONAL_LINK_GL_LIB    =   $(LINK_LIB_GL)
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   112
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   113
# ---------------------- end additional stuff --------------------
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   114
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   115
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   116
#
556
c2f0be91462a all library definitions are now here - no need for a PACK file
Claus Gittinger <cg@exept.de>
parents: 555
diff changeset
   117
# default target: create the TARGET (usually smalltalk)
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   118
#
232
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   119
all::   $(TARGET)$(TARGET_RULE_EXTENSION) symlinks
233
ce17bc6aee6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 232
diff changeset
   120
	@-if [ "$(ALSO_MAKE_STATIC_TARGET)" = "1" ]; then \
232
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   121
	    mv stx stx_dynamic; \
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   122
	    $(MAKE) stx_fullstatic; \
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   123
	fi
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   124
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   125
#
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   126
# same, force recreation of link-directories
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   127
#
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   128
allNew: $(TARGET)$(TARGET_RULE_EXTENSION) misc
233
ce17bc6aee6a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 232
diff changeset
   129
	@-if [ "$(ALSO_MAKE_STATIC_TARGET)" = "1" ]; then \
232
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   130
	    mv stx stx_dynamic; \
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   131
	    $(MAKE) stx_fullstatic; \
26c84c07d43c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 219
diff changeset
   132
	fi
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   133
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   134
#
11
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
   135
# create symbolic links to sources, resources etc.
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
   136
# normally (on an end-user system) these should go into usr/local/lib/smalltalk
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
   137
#
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   138
symlinks:   includeLink misc
11
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
   139
6e014573e0c6 *** empty log message ***
claus
parents: 10
diff changeset
   140
#
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   141
# the standard smalltalk executable:
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   142
# basic classes + view & widgets + tools + persistency
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   143
#
24
claus
parents: 22
diff changeset
   144
smalltalk:: $(TARGET)$(TARGET_RULE_EXTENSION)
7
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
   145
82
01383bce1b7c two demo apps added
Claus Gittinger <cg@exept.de>
parents: 77
diff changeset
   146
#
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   147
# a specialized mySmalltalk with additional class(es) and additional
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   148
# C-library builtIn
186
f8ec990a89a5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 185
diff changeset
   149
#
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   150
MY_ADDITIONAL_OBJECTS=Foo.$(O)
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   151
MY_ADDITIONAL_CLASSES=Foo
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   152
MY_ADDITIONAL_LIBS=$(TOP)/../myClasses/libFoo.a
207
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   153
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   154
mySmalltalk: $(MY_ADDITIONAL_OBJECTS)
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   155
	@echo "making special smalltalk ..."
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   156
	@$(MAKE) linkTarget \
570
aac5ba648927 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 569
diff changeset
   157
		LIBOBJS="$(LIBOBJS) $(EXTRA_UI_OBJ)" \
207
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   158
		LINK_OBJS="$(LINK_OBJS)" \
572
1b4ce1db0e52 Use EXTRA_LINK_UI_OBJ when linking smalltalk_shared
Stefan Vogel <sv@exept.de>
parents: 570
diff changeset
   159
		LINK_LIBOBJS="$(LINK_LIBOBJS) $(EXTRA_LINK_UI_OBJ)" \
207
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   160
		LINK_LIBRUN="$(LINK_LIBRUN)" \
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   161
		LIBRUN="$(LIBRUN)" \
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   162
		ADDITIONAL_OBJS=$(MY_ADDITIONAL_OBJECTS) \
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   163
		ADDITIONAL_CLASSES=$(MY_ADDITIONAL_CLASSES) \
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   164
		ADDITIONAL_LIBS=$(MY_ADDITIONAL_LIBS) \
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   165
		LIBLIST="$(LIBLIST)"
237
445e768ac4ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   166
	@$(MAKE) removeLinkLibs
207
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   167
94ef15d42899 example mySmalltalk added
Claus Gittinger <cg@exept.de>
parents: 206
diff changeset
   168
#
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   169
# by default, the TARGET rule calls for one of the
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   170
# rules below. Which one is controlled by the
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   171
# architecture-specific definition file.
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   172
#
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   173
$(TARGET)_shared:
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   174
	@echo "making shared library linked smalltalk ..."
640
6827ded1a510 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 572
diff changeset
   175
	echo EXTRA_LINK_UI_OBJ = $(EXTRA_LINK_UI_OBJ)
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   176
	$(MAKE) linkTarget \
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   177
		LIBOBJS="$(LIBOBJS) $(EXTRA_UI_OBJ)" \
572
1b4ce1db0e52 Use EXTRA_LINK_UI_OBJ when linking smalltalk_shared
Stefan Vogel <sv@exept.de>
parents: 570
diff changeset
   178
		LINK_LIBOBJS="$(LINK_LIBOBJS) $(EXTRA_LINK_UI_OBJ)" \
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   179
		LINK_LIBRUN=$(LINK_LIBRUN) \
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   180
		LIBRUN=$(LIBRUN) \
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   181
		ADDITIONAL_OBJS=$(ADDITIONAL_OBJS) \
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   182
		ADDITIONAL_CLASSES=$(ADDITIONAL_CLASSES) \
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   183
		LIBLIST="$(LIBLIST) $(EXTRA_UI_CLASSES)"
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   184
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   185
$(TARGET)_static: $(STATIC_LIBRUN)
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   186
	@echo "making statically linked smalltalk ..."
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   187
	@$(MAKE) linkTarget \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   188
		LIBOBJS="" \
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   189
		LINK_OBJS="$(STATIC_OBJS) $(STATIC_EXTRA_UI_OBJ)" \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   190
		LINK_LIBOBJS="$(STATIC_LIBOBJS)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   191
		LINK_LIBRUN="$(STATIC_LIBRUN)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   192
		LIBRUN="$(STATIC_LIBRUN)" \
184
86f223b6db99 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 178
diff changeset
   193
		ADDITIONAL_OBJS=$(STATIC_ADDITIONAL_OBJS) \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   194
		ADDITIONAL_CLASSES=$(STATIC_ADDITIONAL_CLASSES) \
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   195
		LIBLIST="$(LIBLIST) $(EXTRA_UI_CLASSES)"
237
445e768ac4ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   196
	@$(MAKE) removeLinkLibs
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   197
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   198
$(TARGET)_fullstatic: $(STATIC_LIBRUN)
285
420addae1322 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   199
	if [ -f $(LIBRUNDIR)/librun.a ]; then \
420addae1322 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   200
	    echo "librun.a already made."; \
420addae1322 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   201
	else \
523
ed849bb98e2e make -> $(MAKE)
Stefan Vogel <sv@exept.de>
parents: 522
diff changeset
   202
	    (cd $(LIBRUNDIR); $(MAKE) librun.a); \
285
420addae1322 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 283
diff changeset
   203
	fi
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   204
	@echo "making full statically linked smalltalk ..."
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   205
	@$(MAKE) linkTarget \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   206
		LIBOBJS="" \
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   207
		LINK_OBJS="$(STATIC_OBJS) $(STATIC_EXTRA_UI_OBJ)" \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   208
		LINK_LIBOBJS="$(STATIC_LIBOBJS)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   209
		LINK_LIBRUN="$(STATIC_LIBRUN)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   210
		LIBRUN="$(STATIC_LIBRUN)" \
184
86f223b6db99 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 178
diff changeset
   211
		ADDITIONAL_OBJS=$(STATIC_ADDITIONAL_OBJS) \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   212
		ADDITIONAL_CLASSES=$(STATIC_ADDITIONAL_CLASSES) \
569
69e97c7b184d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 568
diff changeset
   213
		LIBLIST="$(LIBLIST) $(EXTRA_UI_CLASSES)" \
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   214
		MATHLIB="$(STATIC_MATHLIB)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   215
		EXTRA_LIBS="$(STATIC_EXTRA_LIBS)" \
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   216
		SYSLIBS="$(STATIC_SYSLIBS)"
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   217
237
445e768ac4ec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   218
	@$(MAKE) removeLinkLibs
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   219
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   220
AIX_SHARED_LIBOBJS= \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   221
	$(LIBBASICDIR)/libbasic.so \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   222
	$(LIBCOMPDIR)/libcomp.so \
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   223
	$(LIBVIEWDIR)/libview.so \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   224
	$(LIBVIEW2DIR)/libview2.so \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   225
	$(LIBWIDGDIR)/libwidg.so \
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   226
	$(LIBTOOLDIR)/libtool.so \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   227
	$(LIBBASIC2DIR)/libbasic2.so \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   228
	$(LIBBASIC3DIR)/libbasic3.so \
145
a06a045e927e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 142
diff changeset
   229
	$(LIBHTMLDIR)/libhtml.so \
150
f3348e85b53f executable now called stx
Claus Gittinger <cg@exept.de>
parents: 149
diff changeset
   230
	$(LIBWIDG2DIR)/libwidg2.so \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   231
	$(PERSDIR)/libdbase.so
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   232
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   233
aix:
162
72016b0ed7d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 158
diff changeset
   234
	    @echo "making shared library linked smalltalk for aix ..."
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   235
	    @$(MAKE) linkTarget \
142
08b48c3321fd shared-lib-link changes
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   236
		LIBOBJS="$(AIX_SHARED_LIBOBJS)" \
08b48c3321fd shared-lib-link changes
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   237
		EXTRA_OBJ="$(EXTRA_OBJ)" \
08b48c3321fd shared-lib-link changes
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   238
		EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \
08b48c3321fd shared-lib-link changes
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   239
		LIBLIST="$(LIBLIST)" \
162
72016b0ed7d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 158
diff changeset
   240
		LINK_LIBRUN=$(LINK_LIBDIR)librun.so \
142
08b48c3321fd shared-lib-link changes
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   241
		LIBRUN=$(LIBRUNDIR)/librun.so
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   242
132
ec7eba4010f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
   243
aix_librun_only:
ec7eba4010f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
   244
	    @echo "making partial shared library linked smalltalk ..."
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   245
	    @$(MAKE) linkTarget LIBRUN=$(LIBRUNDIR)/librun.so
132
ec7eba4010f1 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 130
diff changeset
   246
101
99574807f4fd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   247
forceStatic:
523
ed849bb98e2e make -> $(MAKE)
Stefan Vogel <sv@exept.de>
parents: 522
diff changeset
   248
	    (cd $(LIBBASICDIR) ; $(MAKE) libbasicInit.o)
332
6cda703e3dd5 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 330
diff changeset
   249
	    -rm -f $(LIBBASICDIR)/libbasic.o
568
15e0e2736c8b fileNameAbbrevs; make rules
Claus Gittinger <cg@exept.de>
parents: 556
diff changeset
   250
	    $(MAKE) linkTarget LIBRUN="$(LIBRUNDIR)/*.o" LIBBASIC="$(LIBBASICDIR)/*.o"
101
99574807f4fd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 94
diff changeset
   251
393
ae610c970310 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 384
diff changeset
   252
$(LIBVIEWDIR)/XWorkstation.o:
555
170ff4001fff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
   253
	(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstation.o)
25
claus
parents: 24
diff changeset
   254
393
ae610c970310 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 384
diff changeset
   255
$(LIBVIEWDIR)/XWorkstation.so:
555
170ff4001fff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
   256
	(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstation.so)
25
claus
parents: 24
diff changeset
   257
393
ae610c970310 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 384
diff changeset
   258
$(LIBVIEWDIR)/GLXWorkstation.o:
555
170ff4001fff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
   259
	(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstation.o)
25
claus
parents: 24
diff changeset
   260
393
ae610c970310 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 384
diff changeset
   261
$(LIBVIEWDIR)/GLXWorkstation.so:
555
170ff4001fff *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 523
diff changeset
   262
	(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstation.so)
25
claus
parents: 24
diff changeset
   263
178
7ab96c8246bd added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents: 176
diff changeset
   264
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   265
#
0cb137a77319 Initial revision
claus
parents:
diff changeset
   266
# make list of classes for a standard smalltalk
2
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   267
# (includes basic, view & widgets and Persistency)
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   268
#
7
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
   269
BASICLIST:   $(CLASSLISTS)
57c09d1b7f69 *** empty log message ***
claus
parents: 6
diff changeset
   270
	    -cat $(CLASSLISTS) > $(CLASSLIST)
6
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   271
e62874de13a6 *** empty log message ***
claus
parents: 3
diff changeset
   272
#
27
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   273
# dont want these ttt-tempfile abbrevs to be included ...
15
6cb30063ea41 *** empty log message ***
claus
parents: 13
diff changeset
   274
#
16
db5d473df9f0 *** empty log message ***
claus
parents: 15
diff changeset
   275
abbrev.stc::
27
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   276
	    @-rm -f ttt*.*
16
db5d473df9f0 *** empty log message ***
claus
parents: 15
diff changeset
   277
27
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   278
#
362
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   279
# currently, abbrev,stc must be made cross
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   280
#
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   281
ntAbbrev.stc: include/abbrev.stc
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   282
	cp include/abbrev.stc ntAbbrev.stc
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   283
87f7b4670ae8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 334
diff changeset
   284
#
27
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   285
# dont want local abbrevs to be included ...
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   286
#
15
6cb30063ea41 *** empty log message ***
claus
parents: 13
diff changeset
   287
collectAbbrev::
27
ceceb29d0bd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   288
	    @-rm -f abbrev.stc
408
ddf371d470bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 400
diff changeset
   289
	    @-if [ "$(SUPPRESS_ABBREVS)" = "" ]; then \
ddf371d470bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 400
diff changeset
   290
	      if [ -d include ]; then \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   291
		if [ ! -f include/abbrev.stc ]; then \
383
3dfae183631c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   292
		    (cd include; $(LNS) ../$(INCLUDE)/abbrev.stc . );   \
408
ddf371d470bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 400
diff changeset
   293
		fi; \
ddf371d470bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 400
diff changeset
   294
	      fi;   \
112
9c20e82bba52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 111
diff changeset
   295
	    fi
9c20e82bba52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 111
diff changeset
   296
9c20e82bba52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 111
diff changeset
   297
collectAutoload::
9c20e82bba52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 111
diff changeset
   298
	    @-rm -f autoloadList.stc
332
6cda703e3dd5 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 330
diff changeset
   299
	    @-if [ -d include ]; then \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   300
		if [ ! -f include/autoloadList.stc ]; then \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   301
		    (cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc . ); \
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   302
		fi;                                                             \
112
9c20e82bba52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 111
diff changeset
   303
	    fi
15
6cb30063ea41 *** empty log message ***
claus
parents: 13
diff changeset
   304
82
01383bce1b7c two demo apps added
Claus Gittinger <cg@exept.de>
parents: 77
diff changeset
   305
classes::
332
6cda703e3dd5 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 330
diff changeset
   306
	    test -d classes || mkdir classes
82
01383bce1b7c two demo apps added
Claus Gittinger <cg@exept.de>
parents: 77
diff changeset
   307
	    -for i in source/*.st; do \
130
ad3285492ec5 aix-now supports shared libs
Claus Gittinger <cg@exept.de>
parents: 124
diff changeset
   308
		stcomp -i stcomp.img $$i; \
82
01383bce1b7c two demo apps added
Claus Gittinger <cg@exept.de>
parents: 77
diff changeset
   309
	    done
01383bce1b7c two demo apps added
Claus Gittinger <cg@exept.de>
parents: 77
diff changeset
   310
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   311
include:    includeLink
8
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   312
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   313
misc:       examples
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   314
d82829c0d867 *** empty log message ***
claus
parents: 7
diff changeset
   315
examples:
332
6cda703e3dd5 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 330
diff changeset
   316
	    test -d examples || mkdir examples examples/3D
6cda703e3dd5 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 330
diff changeset
   317
	    -(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data . 2> /dev/null)
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   318
2
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   319
#
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   320
# clean out intermediate chunk
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   321
#
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   322
cleanjunk::
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   323
	    @-rm -f a.out SymbolTable ttt main.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   324
	    @-rm -f classList.c fclassList.c nxclassList.c basicclassList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   325
	    @-rm -f betaclassList.c miniList.c tinyList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   326
	    @-rm -f modulList.stc modulList.c modulList.o
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   327
	    @-rm -f pers* pers2 data data2 data.boss tetris.scores
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   328
26
Claus Gittinger <cg@exept.de>
parents: 25
diff changeset
   329
cleanlinks:
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   330
	    @-rm -rf source bitmaps binaries resources examples include
26
Claus Gittinger <cg@exept.de>
parents: 25
diff changeset
   331
2
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   332
#
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   333
# clean out all that is not needed to run smalltalk
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   334
#
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   335
clean::
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   336
	    @-rm -f a.out SymbolTable ttt main.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   337
	    @-rm -f modulList.stc modulList.c modulList.o
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   338
	    @-rm -f classList.stc classList.c classList.o
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   339
	    @-rm -f fclassList.stc fclassList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   340
	    @-rm -f nxclassList.stc nxclassList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   341
	    @-rm -f basicclassList.stc basicclassList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   342
	    @-rm -f betaclassList.stc betaclassList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   343
	    @-rm -f miniList.stc miniList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   344
	    @-rm -f tinyList.stc tinyList.c
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   345
	    @-rm -f pers pers2 data data2 data.boss tetris.scores
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   346
	    @-rm -f st.img st2.img st.img.sav errorOutput
486
c9f03027499e Move symbols to librun
Stefan Vogel <sv@exept.de>
parents: 418
diff changeset
   347
	    @-rm -f .stx*.mem
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   348
	    @-rm -rf modules stxtmp*
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   349
2
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   350
#
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   351
# clean out all that can be regenerated
353a88ada7c6 *** empty log message ***
claus
parents: 0
diff changeset
   352
#
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   353
clobber::
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   354
	    @$(MAKE) removeLinkLibs
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   355
	    @-rm -f modulList.stc modulList.c modulList.o
522
f613383980da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 488
diff changeset
   356
	    @-rm -rf resources source bitmaps include examples lib
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   357
	    @-rm -f stx st.img st.img.sav st.sav
486
c9f03027499e Move symbols to librun
Stefan Vogel <sv@exept.de>
parents: 418
diff changeset
   358
	    @-rm -f main.o
334
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   359
	    @-rm -rf modules
4f2f36707f3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 332
diff changeset
   360
	    @-rm -rf stxtmp_*
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   361
666
b99465caf959 Makefile -> makefile
Claus Gittinger <cg@exept.de>
parents: 640
diff changeset
   362
main.o::    $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h makefile
0
0cb137a77319 Initial revision
claus
parents:
diff changeset
   363
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
   364
installProgsIf:: $(INSTALLBIN_DIR)
400
725d4c6d890c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
   365
	@-echo "installing smalltalk..."
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
   366
	$(INSTALL_SCRIPT_CMD) smalltalk $(INSTALLBIN_DIR)
400
725d4c6d890c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
   367
	@-echo "installing stx..."
383
3dfae183631c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   368
	$(INSTALL_BIN_CMD) stx $(INSTALLBIN_DIR)
3dfae183631c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   369
	-strip $(INSTALLBIN_DIR)/stx
3dfae183631c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   370
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
   371
installAux:: installRCScripts
383
3dfae183631c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 362
diff changeset
   372
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
   373
installRCScripts::
400
725d4c6d890c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 398
diff changeset
   374
	@-echo "installing rc scripts..."
398
bbb3ba0bb33d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 393
diff changeset
   375
	$(INSTALL_AUX_CMD) *.rc $(INSTALLLIB_DIR)
418
a40b1f54e841 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 408
diff changeset
   376
	$(INSTALL_AUX_CMD) *.xpm $(INSTALLLIB_DIR)