Externals/ACPICA - Working on drop-in ACPICA
[tpg/acess2.git] / Externals / ACPICA / Makefile
1
2
3 include $(dir $(lastword $(MAKEFILE_LIST)))../../Makefile.cfg
4
5 COMPONENTS = utilities tables
6 BIN := ../$(ARCH)/libacpica.a
7
8 ACPICAROOT := acpica-unix-20121114/
9 COMPDIR := $(ACPICAROOT)source/components/
10
11 CPPFLAGS += -I $(ACPICAROOT)source/include
12
13 SRCS := $(foreach comp,$(COMPONENTS),$(wildcard $(COMPDIR)$(comp)/*.c))
14 OBJS := $(SRCS:$(COMPDIR)%.c=obj-$(ARCH)/%.o)
15
16 .PHONY: all clean
17
18 $(BIN): $(OBJS)
19         ar -cu $@ $(OBJS)
20
21 obj-$(ARCH)/%.o: $(COMPDIR)%.c
22         @mkdir -p $(dir $@)
23         $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< 
24         @$(CC) -M -MP -MT $@ $(CPPFLAGS) $< -o [email protected]
25

UCC git Repository :: git.ucc.asn.au