aboutsummaryrefslogtreecommitdiff
path: root/generate/unix/Makefile.config
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2011-02-11 22:56:14 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2011-02-11 22:56:14 +0000
commit19834a6cfd047752c68451e6ded1a2950f6b1f44 (patch)
tree9d61cc356dc91b33ff673ba89e884aab6cbb55be /generate/unix/Makefile.config
parent8f74426ca5911529047348ff4731e7f5fbb49c67 (diff)
downloadsrc-19834a6cfd047752c68451e6ded1a2950f6b1f44.tar.gz
src-19834a6cfd047752c68451e6ded1a2950f6b1f44.zip
Import ACPICA 20110211.vendor/acpica/20110211
Notes
Notes: svn path=/vendor-sys/acpica/dist/; revision=218585 svn path=/vendor-sys/acpica/20110211/; revision=218586; tag=vendor/acpica/20110211
Diffstat (limited to 'generate/unix/Makefile.config')
-rw-r--r--generate/unix/Makefile.config87
1 files changed, 87 insertions, 0 deletions
diff --git a/generate/unix/Makefile.config b/generate/unix/Makefile.config
new file mode 100644
index 000000000000..160fa38afdbb
--- /dev/null
+++ b/generate/unix/Makefile.config
@@ -0,0 +1,87 @@
+#
+# 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
+#
+HOST = _CYGWIN
+CC = gcc-4
+ACPICA_SRC = ../../../source
+DIRS = acpiexec 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=2 \
+ -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+= \
+# -Wredundant-decls \
+# -Wunreachable-code \
+# -Wcast-qual \
+# -Wconversion
+# -Wshadow \
+
+#
+# Bison/Flex configuration
+#
+YACC= bison
+YFLAGS+= -v -d -y -pAslCompiler
+
+LEX= flex
+LFLAGS+= -i -s -PAslCompiler
+