summaryrefslogtreecommitdiff
path: root/generate/efi/Makefile.rules
blob: 914ea5a432199c27d5b42024d46d52f85563da76 (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
#
# Common rules for generation of ACPICA utilities
#
# BIN/PROG.efi - Copies the utility to the local bin directory
# PROG.efi - Converts the shared library into EFI executable
# PROG.so - Builds the utility into a shared library
#


../$(BINDIR)/$(PROG).efi : $(PROG).efi
	$(COPYPROG)

$(PROG).efi : $(PROG).so
	$(OBJCOPYPROG)

$(PROG).so : $(OBJECTS)
	$(LINKPROG)

$(OBJDIR)/%.o : %.c $(HEADERS) $(ACPICA_HEADERS)
	$(COMPILEOBJ)

clean :
	rm -f ../$(BINDIR)/$(PROG).efi
	rm -f $(PROG).efi
	rm -f $(PROG).so
	rm -f $(OBJECTS)