## @file # Makefile # # Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # DEPFILES = $(OBJECTS:%.o=%.d) $(MAKEROOT)/libs-$(HOST_ARCH): mkdir -p $(MAKEROOT)/libs-$(HOST_ARCH) .PHONY: install install: $(MAKEROOT)/libs-$(HOST_ARCH) $(LIBRARY) cp $(LIBRARY) $(MAKEROOT)/libs-$(HOST_ARCH) $(LIBRARY): $(OBJECTS) $(AR) crs $@ $^ %.o : %.c $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ %.o : %.cpp $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< -o $@ .PHONY: clean clean: @rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES) -include $(DEPFILES)