Rev 1498 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2216 | Serge | 1 | # |
2 | # acpixtract - extract binary ACPI tables from acpidump text output |
||
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 | # |
||
1498 | serge | 8 | |
2216 | Serge | 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 | # |
||
18 | PROG = acpixtract |
||
1498 | serge | 19 | |
2216 | Serge | 20 | HOST = _LINUX |
21 | NOMAN = YES |
||
22 | COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $? |
||
1498 | serge | 23 | |
2216 | Serge | 24 | ACPICA_COMPONENTS = |
25 | ACPICA_SRC = ../.. |
||
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) |
||
1498 | serge | 32 | |
2216 | Serge | 33 | CFLAGS+= \ |
34 | -D$(HOST) \ |
||
35 | -D_GNU_SOURCE \ |
||
36 | -I$(ACPICA_SRC)/include |
||
1498 | serge | 37 | |
2216 | Serge | 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 |
||
1498 | serge | 52 | |
2216 | Serge | 53 | OBJS = \ |
54 | acpixtract.o |
||
1498 | serge | 55 | |
2216 | Serge | 56 | # |
57 | # Root rule |
||
58 | # |
||
59 | $(PROG) : $(OBJS) |
||
60 | $(CC) $(LDFLAGS) $(OBJS) -o $(PROG) |
||
61 | |||
62 | # |
||
63 | # acpixtract source |
||
64 | # |
||
65 | acpixtract.o : $(ACPICA_TOOLS)/acpixtract/acpixtract.c |
||
66 | $(COMPILE) |
||
67 | |||
68 | |||
69 | clean : |
||
70 | rm -f $(PROG) $(PROG).exe $(OBJS) |
||
71 | |||
72 | install : |
||
73 | $(INSTALLPROG) |