mirror of
https://github.com/acpica/acpica/
synced 2025-01-23 18:02:17 +03:00
73526abc6a
Automatically generate 32 or 64 based on machine. Also allows forced generation of both 32/64 if desired.
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
#
|
|
# acpisrc - ACPICA source code conversion utility
|
|
#
|
|
|
|
#
|
|
# Note: This makefile is intended to be used from within the native
|
|
# ACPICA directory structure, from under generate/unix. It specifically
|
|
# places all object files in a generate/unix subdirectory, not within
|
|
# the various ACPICA source directories. This prevents collisions
|
|
# between different compilations of the same source file with different
|
|
# compile options, and prevents pollution of the source code.
|
|
#
|
|
include ../Makefile.config
|
|
PROG = $(OBJDIR)/acpisrc
|
|
|
|
#
|
|
# Search path for source files and individual source files
|
|
#
|
|
vpath %.c \
|
|
$(ACPISRC) \
|
|
$(ACPICA_COMMON) \
|
|
$(ACPICA_OSL)
|
|
|
|
HEADERS = \
|
|
$(wildcard $(ACPISRC)/*.h)
|
|
|
|
OBJECTS = \
|
|
$(OBJDIR)/ascase.o \
|
|
$(OBJDIR)/asconvrt.o \
|
|
$(OBJDIR)/asfile.o \
|
|
$(OBJDIR)/asmain.o \
|
|
$(OBJDIR)/asremove.o \
|
|
$(OBJDIR)/astable.o \
|
|
$(OBJDIR)/asutils.o \
|
|
$(OBJDIR)/osunixdir.o \
|
|
$(OBJDIR)/getopt.o
|
|
|
|
#
|
|
# Compile flags specific to acpisrc
|
|
#
|
|
CFLAGS+= \
|
|
-DACPI_SRC_APP \
|
|
-I$(ACPISRC)
|
|
|
|
#
|
|
# Rules
|
|
#
|
|
$(PROG) : $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) -o $(PROG)
|
|
$(COPYPROG)
|
|
|
|
$(OBJDIR)/%.o : %.c $(HEADERS) $(ACPICA_HEADERS)
|
|
$(COMPILE)
|
|
|
|
clean :
|
|
rm -f $(PROG) $(PROG).exe $(OBJECTS)
|
|
|
|
install :
|
|
$(INSTALLPROG)
|