1 # 2 # Makefile.config 3 # 4 # Common configuration and setup file to generate the ACPICA tools and 5 # utilities: acpiexec, acpisrc, acpixtract, and the iASL compiler. 6 # 7 # This file is included by the individual makefiles for each tool. 8 # 9 10 # 11 # Configuration 12 # 13 HOST = _CYGWIN 14 CC = gcc-4 15 ACPICA_SRC = ../../../source 16 DIRS = acpiexec acpinames acpisrc acpixtract iasl 17 INSTALLDIR = /usr/bin 18 19 # 20 # Common defines 21 # 22 ASL_COMPILER = $(ACPICA_SRC)/compiler 23 ACPICA_COMMON = $(ACPICA_SRC)/common 24 ACPICA_CORE = $(ACPICA_SRC)/components 25 ACPICA_TOOLS = $(ACPICA_SRC)/tools 26 ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers 27 COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $? 28 COPYPROG = @mkdir -p ../bin; rm -f ../bin/$(PROG); cp --remove-destination $(PROG) ../bin 29 INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR) 30 31 # 32 # Common compiler flags. The warning flags in addition to -Wall are not 33 # automatically included in -Wall. 34 # 35 CFLAGS+= -Os -D$(HOST) -I$(ACPICA_SRC)/include -D_GNU_SOURCE 36 CWARNINGFLAGS = \ 37 -ansi \ 38 -Wall \ 39 -Wbad-function-cast \ 40 -Wdeclaration-after-statement \ 41 -Werror \ 42 -Wformat=2 \ 43 -Wmissing-declarations \ 44 -Wmissing-prototypes \ 45 -Wstrict-aliasing=2 \ 46 -Wstrict-prototypes \ 47 -Wswitch-default \ 48 -Wpointer-arith \ 49 -Wundef 50 51 # 52 # gcc 4+ flags 53 # 54 CWARNINGFLAGS+= \ 55 -Waddress \ 56 -Waggregate-return \ 57 -Wchar-subscripts \ 58 -Wempty-body \ 59 -Wlogical-op \ 60 -Wmissing-declarations \ 61 -Wmissing-field-initializers \ 62 -Wmissing-parameter-type \ 63 -Wnested-externs \ 64 -Wold-style-declaration \ 65 -Wold-style-definition \ 66 -Wredundant-decls \ 67 -Wtype-limits 68 69 # 70 # Extra warning flags (possible future use) 71 # 72 #CWARNINGFLAGS+= \ 73 # -Wredundant-decls \ 74 # -Wunreachable-code \ 75 # -Wcast-qual \ 76 # -Wconversion 77 # -Wshadow \ 78 79 # 80 # Bison/Flex configuration 81 # 82 YACC= bison 83 YFLAGS+= -v -d -y -pAslCompiler 84 85 LEX= flex 86 LFLAGS+= -i -s -PAslCompiler 87 88