blob: 5dace68827fc5367c64cb26888745740e5727db4 (
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
|
# This Makefile compiles all of the pm hardware procedure code. See the
# "pmfiles.mk" file in this directory.
#all generated files from this makefile will end up in obj/pm
export SUB_OBJDIR = /pm
include img_defs.mk
include pmfiles.mk
OBJS := $(addprefix $(OBJDIR)/, $(PM_OBJECTS))
libpm.a: pm
$(AR) crs $(OBJDIR)/libpm.a $(OBJDIR)/*.o
.PHONY: clean pm
pm: $(OBJS)
$(OBJS) $(OBJS:.o=.d): | $(OBJDIR)
$(OBJDIR):
mkdir -p $(OBJDIR)
clean:
rm -fr $(OBJDIR)
ifneq ($(MAKECMDGOALS),clean)
include $(OBJS:.o=.d)
endif
|