author | Claus Gittinger <cg@exept.de> |
Wed, 29 Oct 2003 11:45:21 +0100 | |
changeset 1839 | 494a30fd40cf |
parent 1798 | 367bc8d647b0 |
child 1853 | f746717ff856 |
permissions | -rw-r--r-- |
1839 | 1 |
# $Header: /cvs/stx/stx/libview2/Make.proto,v 1.86 2003-10-29 10:45:21 cg Exp $ |
96 | 2 |
# |
3 |
# -------------- no need to change anything below ---------- |
|
4 |
||
5 |
TOP=.. |
|
6 |
SUBDIRS= |
|
7 |
||
1267 | 8 |
MODULE=stx |
1268 | 9 |
MODULE_DIR=libview2 |
96 | 10 |
LIBNAME=libview2 |
1276 | 11 |
THIS_IS_A_BASE_LIBRARY="yes" |
12 |
||
1296
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
13 |
PACKAGE=$(MODULE):$(MODULE_DIR) |
913 | 14 |
LIB_BASE=$(LIBVIEW2_BASE) |
1227 | 15 |
NM_LIB_BASE=LIBVIEW2_BASE |
913 | 16 |
|
916 | 17 |
STCOPT=$(LIBVIEW2_STCOPT) |
1163
e07b937b67a0
added the PACKAGE definition
Claus Gittinger <cg@exept.de>
parents:
1154
diff
changeset
|
18 |
STCLOCALOPT='-package=$(PACKAGE)' $(COMMONSYMBOLS) $(SEPINITCODE) -varPrefix=$(LIBNAME) |
686 | 19 |
UNCRITICALOPT=-optinline +optspace3 |
328 | 20 |
CCLOCALOPT=$(CC_SPACEOPT) |
178 | 21 |
LINKOBJRULE=$(SEPINITLINKOBJRULE) |
96 | 22 |
|
1296
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
23 |
NT_ADDITIONAL_DEFS:: |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
24 |
@-echo "LIBJPEG_DIR=$$(TOP)\\support\\libjpeg-6a" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
25 |
@-echo "LIBJPEG=$$(LIBJPEG_DIR)\libjpeg.lib" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
26 |
@-echo "CLOCAL_INCL=-I$$(LIBJPEG_DIR)" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
27 |
@-echo "LOCALLIBS=$$(LIBJPEG)" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
28 |
|
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
29 |
NT_ADDITIONAL_RULES:: |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
30 |
@-echo "ALL:: $$(LIBJPEG)" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
31 |
@-echo |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
32 |
@-echo "$$(LIBJPEG): |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
33 |
@-echo "#cd $$(LIBJPEG_DIR)" | tr "#" "\\011" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
34 |
@-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
|
35 |
@-echo "#cd $$(TOP)\libview2" | tr '#' "\\011" |
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
36 |
|
48afa4d80771
nt additional rules now in Make.proto
Claus Gittinger <cg@exept.de>
parents:
1276
diff
changeset
|
37 |
|
256 | 38 |
all:: classLibRule |
96 | 39 |
|
40 |
# |
|
41 |
# less frequently used/needed |
|
713 | 42 |
# these are compiled with +optSpace |
96 | 43 |
# |
167 | 44 |
UNCRITICALOBJS= \ |
1235 | 45 |
ColorValue.$(O) \ |
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
46 |
Icon.$(O) \ |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
47 |
InputView.$(O) \ |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
48 |
BlockValue.$(O) \ |
1234 | 49 |
PrintConverter.$(O) \ |
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
50 |
EventListener.$(O) \ |
713 | 51 |
MIMETypes.$(O) \ |
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
52 |
ActiveHelp.$(O) \ |
1081 | 53 |
ActiveHelpView.$(O) \ |
1125 | 54 |
KeyboardProcessor.$(O) \ |
1081 | 55 |
ToolApplicationModel.$(O) \ |
1627 | 56 |
ResourceSpecEditor.$(O) \ |
57 |
MultiImage.$(O) |
|
157
dceec0425445
some (most ?) are not time critical
Claus Gittinger <cg@exept.de>
parents:
152
diff
changeset
|
58 |
|
96 | 59 |
OBJS= \ |
1235 | 60 |
ColorValue.$(O) \ |
105 | 61 |
Icon.$(O) \ |
1235 | 62 |
DisplayObject.$(O) \ |
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
63 |
InputView.$(O) \ |
1234 | 64 |
PrintConverter.$(O) \ |
655 | 65 |
MIMETypes.$(O) \ |
1081 | 66 |
ApplicationWindow.$(O) \ |
655 | 67 |
Model.$(O) \ |
1234 | 68 |
ApplicationModel.$(O) \ |
1081 | 69 |
ToolApplicationModel.$(O) \ |
70 |
ResourceSpecEditor.$(O) \ |
|
1234 | 71 |
ValueModel.$(O) \ |
72 |
PluggableAdaptor.$(O) \ |
|
73 |
TypeConverter.$(O) \ |
|
655 | 74 |
BlockValue.$(O) \ |
1234 | 75 |
ValueHolder.$(O) \ |
1258 | 76 |
ValueHolderWithWeakDependents.$(O) \ |
1234 | 77 |
TriggerValue.$(O) \ |
1235 | 78 |
ProtocolAdaptor.$(O) \ |
79 |
AspectAdaptor.$(O) \ |
|
80 |
BufferedValueHolder.$(O) \ |
|
1798 | 81 |
IndirectValue.$(O) \ |
655 | 82 |
Plug.$(O) \ |
1234 | 83 |
StandardSystemController.$(O) \ |
655 | 84 |
Layout.$(O) \ |
1234 | 85 |
LayoutOrigin.$(O) \ |
86 |
LayoutFrame.$(O) \ |
|
87 |
AlignmentOrigin.$(O) \ |
|
655 | 88 |
EventListener.$(O) \ |
89 |
ActiveHelp.$(O) \ |
|
90 |
ActiveHelpView.$(O) \ |
|
1126 | 91 |
KeyboardProcessor.$(O) \ |
655 | 92 |
Menu.$(O) \ |
1081 | 93 |
MenuItem.$(O) \ |
655 | 94 |
DragAndDropManager.$(O) \ |
95 |
DropObject.$(O) \ |
|
897 | 96 |
DropContext.$(O) \ |
1573 | 97 |
DropSource.$(O) \ |
908 | 98 |
DropTarget.$(O) \ |
897 | 99 |
DragHandler.$(O) \ |
1081 | 100 |
VisualRegion.$(O) \ |
101 |
ResourceRetriever.$(O) \ |
|
1234 | 102 |
WindowBuilder.$(O) \ |
655 | 103 |
UIBuilder.$(O) \ |
1234 | 104 |
TIFFReader.$(O) \ |
1081 | 105 |
GIFReader.$(O) \ |
106 |
XBMReader.$(O) \ |
|
107 |
XPMReader.$(O) \ |
|
1258 | 108 |
$(JPEGREADER) \ |
1514 | 109 |
PopUpBanner.$(O) \ |
110 |
SimpleDialog.$(O) \ |
|
1573 | 111 |
FlyByHelp.$(O) \ |
112 |
ApplicationSubView.$(O) \ |
|
1627 | 113 |
PropertyListDictionary.$(O) \ |
114 |
MultiImage.$(O) |
|
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
115 |
|
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
116 |
pre_objs:: JPEGReader |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
117 |
|
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
118 |
# |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
119 |
# prelink JPEGReader.o with libjpeg |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
120 |
# |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
121 |
JPEGReader: $(LIBJPEG) |
592 | 122 |
@$(MAKE) JPEGReader.$(O) \ |
683 | 123 |
CC="$(LIBJPEG_CC)" \ |
124 |
OPT="$(LIBJPEG_OPT)" \ |
|
125 |
LOCALDEFS="-I$(LIBJPEG_DIR)" \ |
|
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
126 |
LIBNAME="$(LIBNAME)" \ |
683 | 127 |
STCOPT="$(STCOPT)" \ |
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
128 |
STCLOCALOPT="$(STCLOCALOPT)" \ |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
129 |
CCLOCALOPT="$(CCLOCALOPT)" \ |
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
130 |
LINKOBJRULE="$(LINKOBJRULE)" |
914 | 131 |
@if [ "$(NO_PRELINK_LIBJPEG)" = "" ]; then \ |
132 |
mv JPEGReader.$(O) __JPEGReader.$(O); \ |
|
133 |
echo; \ |
|
134 |
echo "prelinking JPEGReader with libjpg ..."; \ |
|
135 |
echo; \ |
|
136 |
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
|
137 |
rm -f __JPEGReader.$(O); \ |
914 | 138 |
echo; \ |
139 |
fi |
|
529
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
140 |
|
d334b10089d8
prelink JPEGReader with libjpeg.a
Claus Gittinger <cg@exept.de>
parents:
484
diff
changeset
|
141 |
$(LIBJPEG):: |
683 | 142 |
@-echo |
143 |
@-echo "making libjpg support library ..." |
|
144 |
@-echo |
|
1154 | 145 |
-(cd $(LIBJPEG_DIR) ; $(MAKE) libjpeg.a CC="$(LIBJPEG_CC)" OPT="$(LIBJPEG_OPT)" CFLAGS="$(LIBJPEG_OPT)") |
683 | 146 |
@-echo |
96 | 147 |
|
1515 | 148 |
Makefiles:: |
149 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
150 |
||
1518 | 151 |
additionalMakefiles:: |
152 |
-( cd $(LIBJPEG_DIR) ; configure ) |
|
153 |
||
96 | 154 |
cleanjunk:: |
1839 | 155 |
@-rm -f *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 156 |
|
157 |
clean:: |
|
1839 | 158 |
@-rm -f [A-Z]*.o *.s *.s2 *.c *.H __JPEGReader.$(O) |
96 | 159 |
|
160 |
clobber:: |
|
1153
9132e541cf39
be less verbose when cleaning or clobbering
Claus Gittinger <cg@exept.de>
parents:
1151
diff
changeset
|
161 |
@-rm -f *.c *.H classList.stc abbrev.stc |
96 | 162 |
|
163 |
tar: |
|
164 |
(cd $(TOP); tar cvfh DISTRIB/libview2.tar \ |
|
165 |
libview2/.dir.info \ |
|
166 |
libview2/*.st \ |
|
167 |
libview2/Make.proto) |
|
168 |
||
169 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
170 |
# ENDMAKEDEPEND --- do not remove this line |