Make.proto
changeset 3331 e2e24f8443fb
parent 2829 c4528c8ce1de
child 3345 9d96243f9e5b
equal deleted inserted replaced
3330:8f02e6804c8f 3331:e2e24f8443fb
     1 # $Header: /cvs/stx/stx/libwidg/Make.proto,v 1.73 2003-11-21 19:36:13 cg Exp $
     1 # $Header: /cvs/stx/stx/libwidg/Make.proto,v 1.74 2006-08-21 17:41:52 cg Exp $
     2 #
     2 #
     3 # -------------- no need to change anything below ----------
     3 # DO NOT EDIT 
       
     4 # automagically generated from the projectDefinition: stx_libwidg.
       
     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=$(LIBWIDG_BASE)
       
     9 NM_LIB_BASE=LIBWIDG_BASE
       
    10 
    25 
    11 STCOPT=$(LIBWIDG_STCOPT) -warnNonStandard
    26 # subdirectories where Makefiles are to be made:
    12 STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME)
    27 # (only define if different from SUBDIRS)
    13 LINKOBJRULE=$(SEPINITLINKOBJRULE)
    28 # ALLSUBDIRS=
    14 
    29 
    15 all::       classLibRule
       
    16 
    30 
    17 #
    31 # if your embedded C code requires any system includes, 
    18 # on (my) aix system, this one cannot be compiled with 
    32 # add the path(es) here:, 
    19 # optimizer - running out of space during compile
    33 # ********** OPTIONAL: MODIFY the next lines ***
    20 #
    34 # LOCALINCLUDES=-Ifoo -Ibar
    21 AIX::       ListView.o TextView.o
    35 LOCALINCLUDES=
    22 	    $(MAKE) OPT="" EditTextView.o
    36 
    23 	    $(MAKE) OPT="" ObjectView.o
    37 
       
    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=
       
    43 
       
    44 
       
    45 PACKAGE=$(MODULE):$(MODULE_DIR)
       
    46 STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -H$(INCLUDE) $(COMMONSYMBOLS) -varPrefix=$(LIBNAME)
       
    47 
       
    48 
       
    49 # ********** OPTIONAL: MODIFY the next line ***
       
    50 # additional C-libraries that should be pre-linked with the class-objects
       
    51 LD_OBJ_LIBS=
       
    52 
       
    53 
       
    54 # ********** OPTIONAL: MODIFY the next line ***
       
    55 # additional C targets or libraries should be added below
       
    56 LOCAL_EXTRA_TARGETS=
       
    57 
       
    58 OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
       
    59 
       
    60 all:: preMake classLibRule postMake
       
    61 
       
    62 
       
    63 # add more install actions here
       
    64 install::
       
    65 
       
    66 # add more install actions for aux-files (resources) here
       
    67 installAux::
       
    68 
       
    69 # add more preMake actions here
       
    70 preMake::
       
    71 
       
    72 # add more postMake actions here
       
    73 postMake:: cleanjunk
    24 
    74 
    25 cleanjunk::
    75 cleanjunk::
    26 	    @-rm -f *.s *.s2 *.c *.H
       
    27 
    76 
    28 clean::
    77 clean::
    29 	    @-rm -f [A-Z]*.o *.s *.s2 *.c *.H
    78 	-rm -f *.o *.H
    30 
    79 
    31 clobber::
    80 clobber::
    32 	    @-rm -f *.c *.H classList.stc abbrev.stc
    81 	-rm -f *.so *.dll
    33 
       
    34 rmuncrit:
       
    35 	    -rm -f $(UNCRITICALOBJS)
       
    36 
       
    37 #
       
    38 # these nest too deep on some systems (see discussion about LIMITSUPERINCLUDE
       
    39 # in configurations/COMMON/defines
       
    40 #
       
    41 WORKSPACE:
       
    42 	    $(MAKE) Workspace.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
       
    43 
       
    44 CODEVIEW:
       
    45 	    $(MAKE) CodeView.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
       
    46 
       
    47 WARNBOX:
       
    48 	    $(MAKE) WarningBox.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
       
    49 
       
    50 RBUTTON:
       
    51 	    $(MAKE) RadioButton.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
       
    52 
       
    53 #
       
    54 # special BIG-rule (kludge for HP)
       
    55 #
       
    56 EditTextView.$(O):
       
    57 	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=EditTextView CC=$(CC) OPT="$(OPT)"
       
    58 
    82 
    59 
    83 
       
    84 # if other things are to be compiled,
       
    85 # add target definitions here,
       
    86 # and list them in LOCAL_EXTRA_TARGETS above.
       
    87 # (care for make syntax - TABS are required in the actions)
       
    88 # foo:  foo.o
       
    89 #	$(CC) -o foo foo.o
       
    90 
       
    91 # 'make depend' will add dependency info between
       
    92 # BEGIN...END below
    60 #
    93 #
    61 # special BIG-rule (kludge for NeXT)
    94 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
    62 #
    95 # ENDMAKEDEPEND --- do not remove this line
    63 ListView.$(O):
       
    64 	$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=ListView OPT="$(OPT)"
       
    65 
    96 
    66 #
       
    67 # on HP, big classes blow the C-preprocessor (stops with 'too much defining' error)
       
    68 #
       
    69 #HP::
       
    70 #
       
    71 #HPbigFiles:
       
    72 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=ObjectView CC=$(CC) OPT="$(OPT)"
       
    73 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DialogBox CC=$(CC) OPT="$(OPT)"
       
    74 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=TextView CC=$(CC) OPT="$(OPT)"
       
    75 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SelectionInListView CC=$(CC) OPT="$(OPT)"
       
    76 #       $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=MenuView CC=$(CC) OPT="$(OPT)"
       
    77 
       
    78 #
       
    79 # deeply nested includes (kludge for sun cc)
       
    80 #
       
    81 SUN::   SUNfiles
       
    82 
       
    83 SUNfiles:
       
    84 	$(MAKE) WarningBox.o STCFLAGS="$(STCFLAGS) $(LIMITSUPERINCLUDE)"
       
    85 
       
    86 
       
    87 
       
    88 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
    89 # ENDMAKEDEPEND --- do not remove this line; make depend needs it