amdgpu/dc/calcs: Consolidate redundant CFLAGS
authorMatthias Kaehlcke <[email protected]>
Thu, 8 Feb 2018 20:53:14 +0000 (12:53 -0800)
committerAlex Deucher <[email protected]>
Mon, 19 Feb 2018 19:19:50 +0000 (14:19 -0500)
Use a variable for common CFLAGS instead of specifying the same flags
for every source file.

Signed-off-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/calcs/Makefile

index 7959e382ed28f0b4aa833edace0ec3938dbefe34..af0f452f3c9f223c70558d6f65e757c09991cfe6 100644 (file)
 # It calculates Bandwidth and Watermarks values for HW programming
 #
 
-CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4
-CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4
-CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4 -Wno-tautological-compare
+calcs_ccflags := -mhard-float -msse -mpreferred-stack-boundary=4
+
+CFLAGS_dcn_calcs.o := $(calcs_ccflags)
+CFLAGS_dcn_calc_auto.o := $(calcs_ccflags)
+CFLAGS_dcn_calc_math.o := $(calcs_ccflags) -Wno-tautological-compare
 
 BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o