Make.proto
author Claus Gittinger <cg@exept.de>
Wed, 23 Aug 2006 00:07:42 +0200
changeset 2153 81f1c95a053b
parent 2049 d9c6f22084b9
child 2161 401f055b8cd1
permissions -rw-r--r--
automatically generated by browser

# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.91 2006-08-22 22:07:42 cg Exp $
#
# DO NOT EDIT 
# automagically generated from the projectDefinition: stx_libview2.
#
# Warning: once you modify this file, do not rerun
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
#
# 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
#
# This file contains definitions for Unix based platforms.

#
# 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=


# if you need any additional defines for embedded C code, 
# add them here:, 
# ********** OPTIONAL: MODIFY the next lines ***
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
LOCALDEFINES=


PACKAGE=$(MODULE):$(MODULE_DIR)
STCLOCALOPT='-package=$(PACKAGE)' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) -H$(INCLUDE) $(COMMONSYMBOLS) -varPrefix=$(LIBNAME)


# ********** 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)


NT_ADDITIONAL_DEFS::
        @-echo "LIBJPEG_DIR=$$(TOP)\\support\\libjpeg-6a"
        @-echo "LIBJPEG=$$(LIBJPEG_DIR)\libjpeg.lib"
        @-echo "CLOCAL_INCL=-I$$(LIBJPEG_DIR)"
        @-echo "LOCALLIBS=$$(LIBJPEG)"

NT_ADDITIONAL_RULES::
        @-echo "ALL:: $$(LIBJPEG)"
        @-echo
        @-echo "$$(LIBJPEG):
        @-echo "#cd $$(LIBJPEG_DIR)" | tr "#" "\\011"
        @-echo "#make.exe -f makefile.bcc32" | tr "#" "\\011"
        @-echo "#cd $$(TOP)\libview2" | tr '#' "\\011"


all:: preMake classLibRule postMake

pre_objs:: JPEGReader


#
# prelink JPEGReader.o with libjpeg
#
JPEGReader: $(LIBJPEG)
        @$(MAKE) JPEGReader.$(O) \
                CC="$(LIBJPEG_CC)" \
                OPT="$(LIBJPEG_OPT)" \
                LOCALDEFS="-I$(LIBJPEG_DIR)" \
                LIBNAME="$(LIBNAME)" \
                STCOPT="$(STCOPT)" \
                STCLOCALOPT="$(STCLOCALOPT)" \
                CCLOCALOPT="$(CCLOCALOPT)" \
                LINKOBJRULE="$(LINKOBJRULE)"
        @if [ "$(NO_PRELINK_LIBJPEG)" = "" ]; then \
            mv JPEGReader.$(O) __JPEGReader.$(O); \
            echo; \
            echo "prelinking JPEGReader with libjpg ..."; \
            echo; \
            echo ld $(LD_REL_FLAG) -o JPEGReader.$(O) __JPEGReader.$(O) $(LIBJPEG); \
            ld $(LD_REL_FLAG) -o JPEGReader.$(O) __JPEGReader.$(O) $(LIBJPEG); \
            rm -f __JPEGReader.$(O); \
            echo; \
        fi

$(LIBJPEG)::
        @-echo
        @-echo "making libjpg support library ..."
        @-echo
        -(cd $(LIBJPEG_DIR) ; $(MAKE) libjpeg.a CC="$(LIBJPEG_CC)" OPT="$(LIBJPEG_OPT)" CFLAGS="$(LIBJPEG_OPT) $(CCCONFOPT)")
        @-echo

Makefiles::
        -( cd $(LIBJPEG_DIR) ; configure )

additionalMakefiles::
        -( cd $(LIBJPEG_DIR) ; configure ) 


# add more install actions here
install::

# add more install actions for aux-files (resources) here
installAux::

# add more preMake actions here
preMake::

# add more postMake actions here
postMake:: cleanjunk

cleanjunk::

clean::
	-rm -f *.o *.H

clobber::
	-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