On Wed, 10 May 2006, Ken Mankoff wrote:
I'm trying to do conditional compilation using findstring and ifeq
in the makefile, but having errors. Can anyone advise how to best
do this?
My apologies for not searching the list archives more thoroughly.
The solution is like so:
%.o: %.f
$(if $(findstring $@,$(OBJ)), \
$(FC) $(FFLAGS) $<, \
$(FCMP) $(FFLAGSMP) $<)
ifeq doesn't expand $@, so $(if) must be used...
-k.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make