Make.proto
author Claus Gittinger <cg@exept.de>
Fri, 21 Nov 2003 20:38:56 +0100
changeset 1855 f66cc1d897e6
parent 1854 35aa15f155ba
child 2049 d9c6f22084b9
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1855
f66cc1d897e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
     1
# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.89 2003-11-21 19:38:56 cg Exp $
96
claus
parents:
diff changeset
     2
#
claus
parents:
diff changeset
     3
# -------------- no need to change anything below ----------
claus
parents:
diff changeset
     4
claus
parents:
diff changeset
     5
TOP=..
1855
f66cc1d897e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
     6
SUBDIRS=
f66cc1d897e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
     7
f66cc1d897e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
     8
LIB_BASE=$(LIBVIEW2_BASE)
f66cc1d897e6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1854
diff changeset
     9
NM_LIB_BASE=LIBVIEW2_BASE
913
e177048fed20 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 908
diff changeset
    10
916
64822d23fdec *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 914
diff changeset
    11
STCOPT=$(LIBVIEW2_STCOPT)
1163
e07b937b67a0 added the PACKAGE definition
Claus Gittinger <cg@exept.de>
parents: 1154
diff changeset
    12
STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME)
686
8d952f78211f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 683
diff changeset
    13
UNCRITICALOPT=-optinline +optspace3
328
f429f549b40a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 322
diff changeset
    14
CCLOCALOPT=$(CC_SPACEOPT)
178
71f018cd6286 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 177
diff changeset
    15
LINKOBJRULE=$(SEPINITLINKOBJRULE)
96
claus
parents:
diff changeset
    16
1296
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    17
NT_ADDITIONAL_DEFS::
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    18
	@-echo "LIBJPEG_DIR=$$(TOP)\\support\\libjpeg-6a"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    19
	@-echo "LIBJPEG=$$(LIBJPEG_DIR)\libjpeg.lib"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    20
	@-echo "CLOCAL_INCL=-I$$(LIBJPEG_DIR)"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    21
	@-echo "LOCALLIBS=$$(LIBJPEG)"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    22
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    23
NT_ADDITIONAL_RULES::
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    24
	@-echo "ALL:: $$(LIBJPEG)"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    25
	@-echo
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    26
	@-echo "$$(LIBJPEG):
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    27
	@-echo "#cd $$(LIBJPEG_DIR)" | tr "#" "\\011"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    28
	@-echo "#make.exe -f makefile.bcc32" | tr "#" "\\011"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    29
	@-echo "#cd $$(TOP)\libview2" | tr '#' "\\011"
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    30
48afa4d80771 nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents: 1276
diff changeset
    31
256
fe3e7b060149 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 185
diff changeset
    32
all::       classLibRule
96
claus
parents:
diff changeset
    33
529
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    34
pre_objs:: JPEGReader
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    35
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    36
#
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    37
# prelink JPEGReader.o with libjpeg
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    38
#
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    39
JPEGReader: $(LIBJPEG)
592
4de2fac46957 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 575
diff changeset
    40
	@$(MAKE) JPEGReader.$(O) \
683
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    41
		CC="$(LIBJPEG_CC)" \
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    42
		OPT="$(LIBJPEG_OPT)" \
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    43
		LOCALDEFS="-I$(LIBJPEG_DIR)" \
529
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    44
		LIBNAME="$(LIBNAME)" \
683
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    45
		STCOPT="$(STCOPT)" \
529
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    46
		STCLOCALOPT="$(STCLOCALOPT)" \
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    47
		CCLOCALOPT="$(CCLOCALOPT)" \
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    48
		LINKOBJRULE="$(LINKOBJRULE)"
914
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    49
	@if [ "$(NO_PRELINK_LIBJPEG)" = "" ]; then \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    50
	    mv JPEGReader.$(O) __JPEGReader.$(O); \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    51
	    echo; \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    52
	    echo "prelinking JPEGReader with libjpg ..."; \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    53
	    echo; \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    54
	    ld $(LD_REL_FLAG) -o JPEGReader.$(O) __JPEGReader.$(O) $(LIBJPEG); \
1151
c13863335d01 - Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents: 1126
diff changeset
    55
	    rm -f __JPEGReader.$(O); \
914
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    56
	    echo; \
6b346d64c18f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 913
diff changeset
    57
	fi
529
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    58
d334b10089d8 prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents: 484
diff changeset
    59
$(LIBJPEG)::
683
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    60
	@-echo
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    61
	@-echo "making libjpg support library ..."
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    62
	@-echo
1154
85278972730f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1153
diff changeset
    63
	-(cd $(LIBJPEG_DIR) ; $(MAKE) libjpeg.a CC="$(LIBJPEG_CC)" OPT="$(LIBJPEG_OPT)" CFLAGS="$(LIBJPEG_OPT)")
683
f50084bd3925 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
    64
	@-echo
96
claus
parents:
diff changeset
    65
1515
e6da3024f05d *** empty log message ***
james
parents: 1514
diff changeset
    66
Makefiles::
e6da3024f05d *** empty log message ***
james
parents: 1514
diff changeset
    67
	-( cd $(LIBJPEG_DIR) ; configure )
e6da3024f05d *** empty log message ***
james
parents: 1514
diff changeset
    68
1518
5e8728053d67 *** empty log message ***
tm
parents: 1515
diff changeset
    69
additionalMakefiles::
5e8728053d67 *** empty log message ***
tm
parents: 1515
diff changeset
    70
	-( cd $(LIBJPEG_DIR) ; configure ) 
5e8728053d67 *** empty log message ***
tm
parents: 1515
diff changeset
    71
96
claus
parents:
diff changeset
    72
cleanjunk::
1839
494a30fd40cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1798
diff changeset
    73
	    @-rm -f *.s *.s2 *.c *.H __JPEGReader.$(O)
96
claus
parents:
diff changeset
    74
claus
parents:
diff changeset
    75
clean::
1839
494a30fd40cf *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1798
diff changeset
    76
	    @-rm -f [A-Z]*.o *.s *.s2 *.c *.H __JPEGReader.$(O)
96
claus
parents:
diff changeset
    77
claus
parents:
diff changeset
    78
clobber::
1153
9132e541cf39 be less verbose when cleaning or clobbering
Claus Gittinger <cg@exept.de>
parents: 1151
diff changeset
    79
	    @-rm -f *.c *.H classList.stc abbrev.stc
96
claus
parents:
diff changeset
    80
claus
parents:
diff changeset
    81
tar:
claus
parents:
diff changeset
    82
	(cd $(TOP); tar cvfh DISTRIB/libview2.tar \
claus
parents:
diff changeset
    83
				libview2/.dir.info \
claus
parents:
diff changeset
    84
				libview2/*.st \
claus
parents:
diff changeset
    85
				libview2/Make.proto)
claus
parents:
diff changeset
    86
claus
parents:
diff changeset
    87
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it 
claus
parents:
diff changeset
    88
# ENDMAKEDEPEND --- do not remove this line