60 |
|
Ssharedlibobjs:=$(addsuffix _pic.o,$(sharedfiles)) |
61 |
|
Ssharedlibdebugobjs:=$(addsuffix _picd.o,$(sharedfiles)) |
62 |
|
|
63 |
+ |
# binary target files |
64 |
+ |
Sbinaryobjects:=$(addsuffix .o,$(binfiles)) |
65 |
+ |
|
66 |
|
#------------------------------------------------ |
67 |
|
# Rules Start Here |
68 |
|
#------------------------------------------------ |
114 |
|
%_d.o : %.f |
115 |
|
$(FC) -c $(CPPFLAGS) $(FFLAGS) $(FCDebugFlag) $< -o $@ |
116 |
|
|
117 |
+ |
# ------------------------------------------------------------------------- |
118 |
|
# -- Executables |
119 |
< |
%.exe : %.cpp |
120 |
< |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
117 |
< |
|
118 |
< |
%.exe : %.cc |
119 |
< |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
120 |
< |
|
121 |
< |
%.exe : %.C |
122 |
< |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
123 |
< |
|
124 |
< |
%.exe : %.F |
125 |
< |
$(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
126 |
< |
|
127 |
< |
%.exe : %.f |
128 |
< |
$(FC) $(CPPFLAGS) $(FFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
119 |
> |
%.exe : %.o |
120 |
> |
$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS) |
121 |
|
|
122 |
|
# -- Debug Exexcutables |
131 |
– |
#LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d") |
132 |
– |
%_d.exe : %.cpp |
133 |
– |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \ $(LDLIBS_D) |
134 |
– |
|
135 |
– |
%_d.exe : %.cc |
136 |
– |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D) |
123 |
|
|
124 |
< |
%_d.exe : %.C |
125 |
< |
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D) |
126 |
< |
|
141 |
< |
%_d.exe : %.F |
142 |
< |
$(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D) |
124 |
> |
#LDLIBS_D:=$(shell $(TOOL_HOME)/LibTypeExpand $(LDLIBS) "_d") |
125 |
> |
%_d.exe : |
126 |
> |
$(CXX) $(CXXFLAGS) $(CXXDebugFlag) $(LDFLAGS) $< -o $@ \ $(LDLIBS_D) |
127 |
|
|
128 |
< |
%_d.exe : %.f |
129 |
< |
$(FC) $(CPPFLAGS) $(FFLAGS_D) $(FCDebugFlag) $(LDFLAGS) $< -o $@ $(LDLIBS_D) |
128 |
> |
realbins:=$(filter $(bintargets),$(notdir $(wildcard $(LOCALTOP)/$(INTbin)/*))) |
129 |
> |
clean :: |
130 |
> |
@if [ "$(realbins)" != "" ] ; then \ |
131 |
> |
echo Removing executables : $(realbins); \ |
132 |
> |
rm $(LOCALTOP)/$(INTbin)/$(realbins); \ |
133 |
> |
fi; |
134 |
|
|
135 |
+ |
# ------------------------------------------------------------------------- |
136 |
|
|
137 |
|
# Some nice generic target names for the user |
138 |
|
|
160 |
|
# -- Standard Archive Libs |
161 |
|
$(arlibname).$(ArchiveSuffix) : $(Sarchivelibobjs) |
162 |
|
$(ArchiveCCTool) |
163 |
< |
@mv $@ $(librarystore) |
163 |
> |
@mv $@ $(librarystore)/$@ |
164 |
|
|
165 |
|
# -- Debug Archive Libs |
166 |
|
$(arlibname)_d.$(ArchiveSuffix) : $(Sarchivelibdebugobjs) |
167 |
|
$(ArchiveCCTool) |
168 |
< |
@mv $@ $(librarystore) |
168 |
> |
@mv $@ $(librarystore)/$@ |
169 |
|
|
170 |
|
# -- Dependencies |
171 |
|
dependencies.mk: $(files) |