mirror of
https://github.com/acpica/acpica/
synced 2024-12-26 04:16:58 +03:00
c30da62310
Add the same warning flags as the unix makefiles (except for gcc4-specific warnings.) reformat the files.
105 lines
2.0 KiB
Makefile
105 lines
2.0 KiB
Makefile
#
|
|
# acpisrc - ACPICA source code conversion utility
|
|
#
|
|
|
|
#
|
|
# NOTE: This makefile is intended to be used in the Linux environment,
|
|
# with the Linux directory structure. It will not work directly
|
|
# on the native ACPICA source tree.
|
|
#
|
|
PROG = acpisrc
|
|
|
|
ACPI_COMPONENTS =
|
|
ACPICA_SRC = ../..
|
|
ACPICA_COMMON = $(ACPICA_SRC)/common
|
|
ACPICA_CORE = $(ACPICA_SRC)$(ACPI_COMPONENTS)
|
|
ACPICA_TOOLS = $(ACPICA_SRC)/tools
|
|
ACPICA_OSL = $(ACPICA_SRC)/os_specific/service_layers
|
|
INSTALLDIR = /usr/bin
|
|
INSTALLPROG = cp --remove-destination $(PROG) $(INSTALLDIR)
|
|
|
|
NOMAN = YES
|
|
CFLAGS+= \
|
|
-O2 \
|
|
-D_LINUX -DNDEBUG -D_CONSOLE \
|
|
-DACPI_APPLICATION \
|
|
-I$(ACPICA_SRC)/include \
|
|
-I.
|
|
|
|
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
|
|
|
|
COMPILE = $(CC) -c $(CFLAGS) $(CWARNINGFLAGS) -o$@ $?
|
|
|
|
OBJS = \
|
|
ascase.o \
|
|
asconvrt.o \
|
|
asfile.o \
|
|
asmain.o \
|
|
asremove.o \
|
|
astable.o \
|
|
asutils.o \
|
|
osunixdir.o \
|
|
getopt.o
|
|
|
|
#
|
|
# Root rule
|
|
#
|
|
$(PROG) : $(OBJS)
|
|
$(CC) $(LDFLAGS) $(OBJS) -o $(PROG)
|
|
|
|
#
|
|
# acpisrc source
|
|
#
|
|
ascase.o : $(ACPICA_TOOLS)/acpisrc/ascase.c
|
|
$(COMPILE)
|
|
|
|
asconvrt.o : $(ACPICA_TOOLS)/acpisrc/asconvrt.c
|
|
$(COMPILE)
|
|
|
|
asfile.o : $(ACPICA_TOOLS)/acpisrc/asfile.c
|
|
$(COMPILE)
|
|
|
|
asmain.o : $(ACPICA_TOOLS)/acpisrc/asmain.c
|
|
$(COMPILE)
|
|
|
|
asremove.o : $(ACPICA_TOOLS)/acpisrc/asremove.c
|
|
$(COMPILE)
|
|
|
|
astable.o : $(ACPICA_TOOLS)/acpisrc/astable.c
|
|
$(COMPILE)
|
|
|
|
asutils.o : $(ACPICA_TOOLS)/acpisrc/asutils.c
|
|
$(COMPILE)
|
|
|
|
#
|
|
# ACPICA core source - common
|
|
#
|
|
getopt.o : $(ACPICA_COMMON)/getopt.c
|
|
$(COMPILE)
|
|
|
|
#
|
|
# Unix OS services layer (OSL)
|
|
#
|
|
osunixdir.o : $(ACPICA_OSL)/osunixdir.c
|
|
$(COMPILE)
|
|
|
|
|
|
clean :
|
|
rm -f $(PROG) $(PROG) $(OBJS)
|
|
|
|
install :
|
|
$(INSTALLPROG)
|