Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | # |
|
- | 2 | # acpixtract - extract binary ACPI tables from acpidump text output |
|
1 | PROG= acpixtract |
3 | # |
- | 4 | # NOTE: This makefile is intended to be used in the Linux environment, |
|
- | 5 | # with the Linux directory structure. It will not work directly |
|
- | 6 | # on the native ACPICA source tree. |
|
- | 7 | # |
|
2 | SRCS= acpixtract.c |
8 | |
- | 9 | # |
|
- | 10 | # Configuration |
|
- | 11 | # Notes: |
|
- | 12 | # gcc should be version 4 or greater, otherwise some of the options |
|
- | 13 | # used will not be recognized. |
|
- | 14 | # Global optimization flags (such as -O2, -Os) are not used, since |
|
- | 15 | # they cause issues on some compilers. |
|
- | 16 | # The _GNU_SOURCE symbol is required for many hosts. |
|
- | 17 | # |
|
3 | 18 | PROG = acpixtract |
|
4 | CFLAGS+= -Wall -O2 -D_LINUX -DACPI_APPLICATION -Wstrict-prototypes -I../../include |
- | |
5 | - | ||
6 | - | ||
7 | acpixtract : $(patsubst %.c,%.o, $(SRCS)) |
- | |
Line -... | Line 19... | ||
- | 19 | ||
- | 20 | HOST = _LINUX |
|
- | 21 | NOMAN = YES |
|
- | 22 | COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $? |
|
- | 23 | ||
- | 24 | ACPICA_COMPONENTS = |
|
- | 25 | ACPICA_SRC = ../.. |
|
8 | $(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) -o $(PROG) |
26 | ACPICA_COMMON = $(ACPICA_SRC)/common |
- | 27 | ACPICA_CORE = $(ACPICA_SRC)$(ACPICA_COMPONENTS) |
|
- | 28 | ACPICA_TOOLS = $(ACPICA_SRC)/tools |
|
- | 29 | ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers |
|
- | 30 | INSTALLDIR = /usr/bin |
|
- | 31 | INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR) |
|
- | 32 | ||
- | 33 | CFLAGS+= \ |
|
- | 34 | -D$(HOST) \ |
|
- | 35 | -D_GNU_SOURCE \ |
|
- | 36 | -I$(ACPICA_SRC)/include |
|
- | 37 | ||
- | 38 | CWARNINGFLAGS = \ |
|
- | 39 | -ansi \ |
|
- | 40 | -Wall \ |
|
- | 41 | -Wbad-function-cast \ |
|
- | 42 | -Wdeclaration-after-statement \ |
|
- | 43 | -Werror \ |
|
- | 44 | -Wformat=2 \ |
|
- | 45 | -Wmissing-declarations \ |
|
- | 46 | -Wmissing-prototypes \ |
|
- | 47 | -Wstrict-aliasing=0 \ |
|
- | 48 | -Wstrict-prototypes \ |
|
- | 49 | -Wswitch-default \ |
|
- | 50 | -Wpointer-arith \ |
|
- | 51 | -Wundef |
|
- | 52 | ||
- | 53 | OBJS = \ |
|
- | 54 | acpixtract.o |
|
- | 55 | ||
- | 56 | # |
|
- | 57 | # Root rule |
|
- | 58 | # |
|
9 | 59 | $(PROG) : $(OBJS) |
|
- | 60 | $(CC) $(LDFLAGS) $(OBJS) -o $(PROG) |
|
- | 61 | ||
- | 62 | # |
|
- | 63 | # acpixtract source |
|
- | 64 | # |
|
- | 65 | acpixtract.o : $(ACPICA_TOOLS)/acpixtract/acpixtract.c |
|
Line 10... | Line -... | ||
10 | CLEANFILES= $(PROG) |
- | |
Line 11... | Line 66... | ||
11 | 66 | $(COMPILE) |
|
12 | clean : |
67 | |
Line -... | Line 68... | ||
- | 68 | ||
- | 69 | clean : |