You may try this way :
You can define variables which name is build with part
of a source filename :
SPECIAL_FLAG_file1.c = -DSOME_FLAG
SPECIAL_FLAG_file2.c = -DOTHER_FLAG
%.o: %.c
$(CC) -c $< $(SPECIAL_FLAG_$(notdir $<)) -o $@
When a file does not need any special flag, then
$(SPECIAL_FLAG_$<) would evaluate to an empty string.
Regards,
--
Fabrice GIRARDOT
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
