author | Claus Gittinger <cg@exept.de> |
Tue, 08 Aug 2006 11:30:41 +0200 | |
changeset 2145 | 75b115b9a5fa |
parent 2049 | d9c6f22084b9 |
child 2153 | 81f1c95a053b |
permissions | -rw-r--r-- |
2049 | 1 |
# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.90 2005-07-05 18:12:46 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; \ |
|
2049 | 54 |
echo ld $(LD_REL_FLAG) -o JPEGReader.$(O) __JPEGReader.$(O) $(LIBJPEG); \ |
914 | 55 |
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
|
56 |
rm -f __JPEGReader.$(O); \ |
914 | 57 |
echo; \ |
58 |
fi |
|
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
59 |
|
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
60 |
$(LIBJPEG):: |
683 | 61 |
@-echo |
62 |
@-echo "making libjpg support library ..." |
|
63 |
@-echo |
|
2049 | 64 |
-(cd $(LIBJPEG_DIR) ; $(MAKE) libjpeg.a CC="$(LIBJPEG_CC)" OPT="$(LIBJPEG_OPT)" CFLAGS="$(LIBJPEG_OPT) $(CCCONFOPT)") |
683 | 65 |
@-echo |
96 | 66 |
|
1515 | 67 |
Makefiles:: |
68 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
69 |
||
1518 | 70 |
additionalMakefiles:: |
71 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
72 |
||
96 | 73 |
cleanjunk:: |
1839 | 74 |
@-rm -f *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 75 |
|
76 |
clean:: |
|
1839 | 77 |
@-rm -f [A-Z]*.o *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 78 |
|
79 |
clobber:: |
|
1153
9132e541cf39
be less verbose when cleaning or clobbering
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
80 |
@-rm -f *.c *.H classList.stc abbrev.stc |
96 | 81 |
|
82 |
tar: |
|
83 |
(cd $(TOP); tar cvfh DISTRIB/libview2.tar \ |
|
84 |
libview2/.dir.info \ |
|
85 |
libview2/*.st \ |
|
86 |
libview2/Make.proto) |
|
87 |
||
88 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
89 |
# ENDMAKEDEPEND --- do not remove this line |