File allow-custom-cflags.patch of Package azimuth
diff -Nur azimuth-1.0.3/Makefile new/Makefile
--- azimuth-1.0.3/Makefile 2019-05-29 19:43:34.000000000 +0200
+++ new/Makefile 2021-04-10 19:28:24.478263008 +0200
@@ -34,7 +34,7 @@
CFLAGS = -I$(SRCDIR) -Wall -Werror -Wempty-body -Winline \
-Wmissing-field-initializers -Wold-style-definition -Wshadow \
- -Wsign-compare -Wstrict-prototypes -Wundef
+ -Wsign-compare -Wstrict-prototypes -Wundef $(OPTFLAGS)
ifeq "$(BUILDTYPE)" "debug"
CFLAGS += -O1 -g
@@ -148,13 +148,13 @@
define compile-sys
@echo "Compiling $@"
- @mkdir -p $(@D)
- @$(CC) -o $@ -c $< $(CFLAGS)
+ mkdir -p $(@D)
+ $(CC) -o $@ -c $< $(CFLAGS)
endef
define compile-c99
@echo "Compiling $@"
- @mkdir -p $(@D)
- @$(CC) -o $@ -c $< $(C99FLAGS)
+ mkdir -p $(@D)
+ $(CC) -o $@ -c $< $(C99FLAGS)
endef
define copy-file
@echo "Copying to $@"