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-- |
1855 | 1 |
# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.89 2003-11-21 19:38:56 cg Exp $ |
96 | 2 |
# |
3 |
# -------------- no need to change anything below ---------- |
|
4 |
||
5 |
TOP=.. |
|
1855 | 6 |
SUBDIRS= |
7 |
||
8 |
LIB_BASE=$(LIBVIEW2_BASE) |
|
9 |
NM_LIB_BASE=LIBVIEW2_BASE |
|
913 | 10 |
|
916 | 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 | 13 |
UNCRITICALOPT=-optinline +optspace3 |
328 | 14 |
CCLOCALOPT=$(CC_SPACEOPT) |
178 | 15 |
LINKOBJRULE=$(SEPINITLINKOBJRULE) |
96 | 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 | 32 |
all:: classLibRule |
96 | 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 | 40 |
@$(MAKE) JPEGReader.$(O) \ |
683 | 41 |
CC="$(LIBJPEG_CC)" \ |
42 |
OPT="$(LIBJPEG_OPT)" \ |
|
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 | 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 | 49 |
@if [ "$(NO_PRELINK_LIBJPEG)" = "" ]; then \ |
50 |
mv JPEGReader.$(O) __JPEGReader.$(O); \ |
|
51 |
echo; \ |
|
52 |
echo "prelinking JPEGReader with libjpg ..."; \ |
|
53 |
echo; \ |
|
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 | 56 |
echo; \ |
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 | 60 |
@-echo |
61 |
@-echo "making libjpg support library ..." |
|
62 |
@-echo |
|
1154 | 63 |
-(cd $(LIBJPEG_DIR) ; $(MAKE) libjpeg.a CC="$(LIBJPEG_CC)" OPT="$(LIBJPEG_OPT)" CFLAGS="$(LIBJPEG_OPT)") |
683 | 64 |
@-echo |
96 | 65 |
|
1515 | 66 |
Makefiles:: |
67 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
68 |
||
1518 | 69 |
additionalMakefiles:: |
70 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
71 |
||
96 | 72 |
cleanjunk:: |
1839 | 73 |
@-rm -f *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 74 |
|
75 |
clean:: |
|
1839 | 76 |
@-rm -f [A-Z]*.o *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 77 |
|
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 | 80 |
|
81 |
tar: |
|
82 |
(cd $(TOP); tar cvfh DISTRIB/libview2.tar \ |
|
83 |
libview2/.dir.info \ |
|
84 |
libview2/*.st \ |
|
85 |
libview2/Make.proto) |
|
86 |
||
87 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
88 |
# ENDMAKEDEPEND --- do not remove this line |