Browse code

Error in suffix macro, remove debug prints

Lorenz Hüdepohl authored on21/05/2015 16:57:11
Showing1 changed files
... ...
@@ -40,14 +40,13 @@ endef
40 40
 #
41 41
 # returns: the appropriate extension (i.e. 'o' for normal programs, '.lo' for libraries)
42 42
 define object_extension
43
-$(if $(filter $2,$(bin_PROGRAMS)),o,lo)
43
+$(if $(filter $1,$(bin_PROGRAMS)),o,lo)
44 44
 endef
45 45
 
46 46
 # $1 source_file
47 47
 # $2 stem
48 48
 # $3 program
49 49
 define module_targets
50
-$(info called module_targets($1,$2,$3))
51 50
 $(eval _$(3)_use_mods += $(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).use_mods.$(call object_extension,$3))
52 51
 $(dir $1)$(2)$(call strip_fortran_ext,$(notdir $1)).use_mods.$(call object_extension,$3): $1 $(dir $1)$(am__dirstamp)
53 52
 	$(call _f90_verbose,F90 USE  [$3] $$<)$(FORTRAN_CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $($p_CPPFLAGS) $(CPPFLAGS) -o /dev/stdout $$< | grep -i -o '^ *use [^ ,!:]*' | sort -u > $$@