Makefile – Assigning Variable according to a Conditional – Debian
I'm trying to adapt the Example from the Official Documentation of GNU make to my Use Case: GNU make - Example of a Conditional libs_for_gcc = -lgnu normal_libs = ifeq ($(CC),gcc) libs=$(libs_for_gcc) else libs=$(normal_libs) endif foo: $(objects) $(CC) -o foo…