summaryrefslogtreecommitdiffstats
path: root/generate/unix/acpibin/Makefile
blob: e26f209d7c8854b61b5dbff0cb1c3fc934797151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# acpibin - Binary ACPI table 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)/acpibin

#
# Search paths for source files
#
vpath %.c \
    $(ACPIBIN) \
    $(ACPICA_UTILITIES) \
    $(ACPICA_COMMON) \
    $(ACPICA_OSL)

HEADERS = \
    $(wildcard $(ACPIBIN)/*.h)

OBJECTS = \
   	$(OBJDIR)/abcompare.o \
	$(OBJDIR)/abmain.o \
	$(OBJDIR)/utalloc.o \
	$(OBJDIR)/utcache.o \
	$(OBJDIR)/utdebug.o \
	$(OBJDIR)/utdecode.o \
	$(OBJDIR)/utexcep.o \
	$(OBJDIR)/utglobal.o \
	$(OBJDIR)/utlock.o \
	$(OBJDIR)/utmath.o \
	$(OBJDIR)/utmisc.o \
	$(OBJDIR)/utmutex.o \
	$(OBJDIR)/utstate.o \
	$(OBJDIR)/utxferror.o \
	$(OBJDIR)/osunixxf.o \
	$(OBJDIR)/getopt.o

#
# Flags specific to acpibin
#
CFLAGS+= \
    -DACPI_BIN_APP \
    -I$(ACPIBIN)

#
# 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)
OpenPOWER on IntegriCloud