mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 23:49:18 +03:00
29f3832223
Provides syntax for ASL operators, and input/output requirements for predefined ACPI names (Names that start with underscore.)
100 lines
2.2 KiB
Makefile
100 lines
2.2 KiB
Makefile
#
|
|
# Makefile.config
|
|
#
|
|
# Common configuration and setup file to generate the ACPICA tools and
|
|
# utilities: acpiexec, acpisrc, acpixtract, and the iASL compiler.
|
|
#
|
|
# This file is included by the individual makefiles for each tool.
|
|
#
|
|
|
|
#
|
|
# Configuration
|
|
# Note: gcc should be version 4 or greater, otherwise some of the
|
|
# options used won't be recognized (see below)
|
|
#
|
|
HOST = _CYGWIN
|
|
CC = gcc
|
|
ACPICA_SRC = ../../../source
|
|
DIRS = acpiexec acpihelp acpinames acpisrc acpixtract iasl
|
|
INSTALLDIR = /usr/bin
|
|
|
|
#
|
|
# Common defines
|
|
#
|
|
ASL_COMPILER = $(ACPICA_SRC)/compiler
|
|
ACPICA_COMMON = $(ACPICA_SRC)/common
|
|
ACPICA_CORE = $(ACPICA_SRC)/components
|
|
ACPICA_TOOLS = $(ACPICA_SRC)/tools
|
|
ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers
|
|
COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $?
|
|
COPYPROG = @mkdir -p ../bin; rm -f ../bin/$(PROG); cp --remove-destination $(PROG) ../bin
|
|
INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR)
|
|
|
|
#
|
|
# Common compiler flags. The warning flags in addition to -Wall are not
|
|
# automatically included in -Wall.
|
|
#
|
|
CFLAGS+= -Os -D$(HOST) -I$(ACPICA_SRC)/include -D_GNU_SOURCE
|
|
CWARNINGFLAGS = \
|
|
-ansi \
|
|
-Wall \
|
|
-Wbad-function-cast \
|
|
-Wdeclaration-after-statement \
|
|
-Werror \
|
|
-Wformat=2 \
|
|
-Wmissing-declarations \
|
|
-Wmissing-prototypes \
|
|
-Wstrict-aliasing=0 \
|
|
-Wstrict-prototypes \
|
|
-Wswitch-default \
|
|
-Wpointer-arith \
|
|
-Wundef
|
|
|
|
#
|
|
# gcc 4+ flags
|
|
#
|
|
CWARNINGFLAGS+= \
|
|
-Waddress \
|
|
-Waggregate-return \
|
|
-Wchar-subscripts \
|
|
-Wempty-body \
|
|
-Wlogical-op \
|
|
-Wmissing-declarations \
|
|
-Wmissing-field-initializers \
|
|
-Wmissing-parameter-type \
|
|
-Wnested-externs \
|
|
-Wold-style-declaration \
|
|
-Wold-style-definition \
|
|
-Wredundant-decls \
|
|
-Wtype-limits
|
|
|
|
#
|
|
# Extra warning flags (possible future use)
|
|
#
|
|
#CWARNINGFLAGS+= \
|
|
# -Wcast-qual \
|
|
# -Wconversion
|
|
# -Wshadow \
|
|
|
|
#
|
|
# Bison/Flex configuration
|
|
#
|
|
# -v: verbose, produces a .output file
|
|
# -d: produces the defines header file
|
|
# -y: act like yacc
|
|
#
|
|
# -i: generate case insensitive scanner
|
|
# -s: suppress default rule, abort on unknown input
|
|
#
|
|
# Berkeley yacc configuration
|
|
#
|
|
#YACC= byacc
|
|
#YFLAGS+= -v -d
|
|
#
|
|
YACC= bison
|
|
YFLAGS+= -v -d -y
|
|
|
|
LEX= flex
|
|
LFLAGS+= -i -s
|
|
|