--- a/Make.proto Wed Aug 23 00:07:14 2006 +0200
+++ b/Make.proto Wed Aug 23 00:07:42 2006 +0200
@@ -1,89 +1,145 @@
-# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.90 2005-07-05 18:12:46 cg Exp $
+# $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.
#
-# -------------- no need to change anything below ----------
+# 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.
-TOP=..
+#
+# 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=
-LIB_BASE=$(LIBVIEW2_BASE)
-NM_LIB_BASE=LIBVIEW2_BASE
+
+# 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=
+
-STCOPT=$(LIBVIEW2_STCOPT)
-STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME)
-UNCRITICALOPT=-optinline +optspace3
-CCLOCALOPT=$(CC_SPACEOPT)
-LINKOBJRULE=$(SEPINITLINKOBJRULE)
+# 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)"
+ @-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"
+ @-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:: classLibRule
+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
+ @$(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
+ @-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 )
+ -( cd $(LIBJPEG_DIR) ; configure )
additionalMakefiles::
- -( cd $(LIBJPEG_DIR) ; configure )
+ -( 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::
- @-rm -f *.s *.s2 *.c *.H __JPEGReader.$(O)
clean::
- @-rm -f [A-Z]*.o *.s *.s2 *.c *.H __JPEGReader.$(O)
+ -rm -f *.o *.H
clobber::
- @-rm -f *.c *.H classList.stc abbrev.stc
+ -rm -f *.so *.dll
+
-tar:
- (cd $(TOP); tar cvfh DISTRIB/libview2.tar \
- libview2/.dir.info \
- libview2/*.st \
- libview2/Make.proto)
+# '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
-# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
-# ENDMAKEDEPEND --- do not remove this line