mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
Added missing cc-option definition.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
#
|
||||
# Note 2! The CFLAGS definitions are now in the main makefile.
|
||||
|
||||
cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
|
||||
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
|
||||
|
||||
EXTRA_CFLAGS += -I$(src)/../include -I$(SCST_INC_DIR)
|
||||
EXTRA_CFLAGS += -Wextra $(call cc-option,-Wno-old-style-declaration) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers
|
||||
|
||||
Reference in New Issue
Block a user