1#
2# Common rules for generation of ACPICA utilities
3#
4# BIN/PROG.efi - Copies the utility to the local bin directory
5# PROG.efi - Converts the shared library into EFI executable
6# PROG.so - Builds the utility into a shared library
7#
8
9
10../$(BINDIR)/$(PROG).efi : $(PROG).efi
11	$(COPYPROG)
12
13$(PROG).efi : $(PROG).so
14	$(OBJCOPYPROG)
15
16$(PROG).so : $(OBJECTS)
17	$(LINKPROG)
18
19$(OBJDIR)/%.o : %.c $(HEADERS) $(ACPICA_HEADERS)
20	$(COMPILEOBJ)
21
22clean :
23	rm -f ../$(BINDIR)/$(PROG).efi
24	rm -f $(PROG).efi
25	rm -f $(PROG).so
26	rm -f $(OBJECTS)
27