comparison Makeconf.in @ 7063:58102cc15ddf

[project @ 2007-10-24 20:35:19 by jwe]
author jwe
date Wed, 24 Oct 2007 20:35:20 +0000
parents a1dbe9d80eee
children 1558d3dab722
comparison
equal deleted inserted replaced
7062:1eb94c1da37d 7063:58102cc15ddf
368 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ 368 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@
369 369
370 # The following pattern rules and the substitution functions require 370 # The following pattern rules and the substitution functions require
371 # GNU make. If you don't have it, get it! 371 # GNU make. If you don't have it, get it!
372 372
373 # Rules for making object files from Fortran source.
374 #
375 # If we are using f2c there will be a command for the `%.c : %.f'
376 # pattern and no command for the `%.o : %.f' pattern, so that make
377 # will not invoke the fortran compiler by mistake.
378 #
379 # If we are not using f2c, it should be ok to have an empty rule for
380 # the pattern `%.c : %.f', but we don't want to replace make's default
381 # rule for making object from Fortran source files, so there should be
382 # no pattern or command for that.
383
384 @f77_rules_frag@
385
386 # How to make .o files: 373 # How to make .o files:
374
375 %.o : %.f
376 $(FC) -c $(ALL_FFLAGS) -o $@ $<
387 377
388 %.o : %.c 378 %.o : %.c
389 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ 379 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@
390 380
391 %.o : %.cc 381 %.o : %.cc
392 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ 382 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@
383
384 pic/%.o : %.f
385 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@
393 386
394 pic/%.o : %.c 387 pic/%.o : %.c
395 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ 388 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@
396 389
397 pic/%.o : %.cc 390 pic/%.o : %.cc