summaryrefslogtreecommitdiffstats
path: root/hwp/nest/Makefile
blob: c1fc1f6c36349a6a432aa247d473a18fa916b606 (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 nest hardware procedure code. See the
# "nestfiles.mk" file in this directory.

#all generated files from this makefile will end up in obj/nest
export SUB_OBJDIR = /nest

include img_defs.mk
include nestfiles.mk


OBJS := $(addprefix $(OBJDIR)/, $(NEST_OBJECTS))

libnest.a: nest
	$(AR) crs $(OBJDIR)/libnest.a $(OBJDIR)/*.o

.PHONY: clean nest
nest: $(OBJS)

$(OBJS) $(OBJS:.o=.d): | $(OBJDIR)

$(OBJDIR):
	mkdir -p $(OBJDIR)

clean:
	rm -fr $(OBJDIR)

ifneq ($(MAKECMDGOALS),clean)
include $(OBJS:.o=.d)
endif
OpenPOWER on IntegriCloud