2010-03-01 00:39:39 +01:00
|
|
|
## @file
|
2014-08-28 15:53:34 +02:00
|
|
|
# Makefile
|
2010-03-01 00:39:39 +01:00
|
|
|
#
|
2016-08-22 08:28:50 +02:00
|
|
|
# Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:03:11 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-08-28 15:53:34 +02:00
|
|
|
#
|
2014-01-27 06:23:15 +01:00
|
|
|
|
|
|
|
DEPFILES = $(OBJECTS:%.o=%.d)
|
|
|
|
|
2017-11-28 04:18:50 +01:00
|
|
|
$(MAKEROOT)/libs-$(HOST_ARCH):
|
|
|
|
mkdir -p $(MAKEROOT)/libs-$(HOST_ARCH)
|
2014-01-27 06:23:15 +01:00
|
|
|
|
|
|
|
.PHONY: install
|
2017-11-28 04:18:50 +01:00
|
|
|
install: $(MAKEROOT)/libs-$(HOST_ARCH) $(LIBRARY)
|
|
|
|
cp $(LIBRARY) $(MAKEROOT)/libs-$(HOST_ARCH)
|
2014-01-27 06:23:15 +01:00
|
|
|
|
2019-10-01 14:42:32 +02:00
|
|
|
$(LIBRARY): $(OBJECTS)
|
2016-08-22 08:32:23 +02:00
|
|
|
$(BUILD_AR) crs $@ $^
|
2014-01-27 06:23:15 +01:00
|
|
|
|
2019-10-01 14:42:32 +02:00
|
|
|
%.o : %.c
|
2018-07-25 22:27:53 +02:00
|
|
|
$(BUILD_CC) -c $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) $< -o $@
|
2014-01-27 06:23:15 +01:00
|
|
|
|
2016-08-22 08:28:50 +02:00
|
|
|
%.o : %.cpp
|
2016-08-31 06:44:50 +02:00
|
|
|
$(BUILD_CXX) -c $(BUILD_CPPFLAGS) $(BUILD_CXXFLAGS) $< -o $@
|
2016-08-22 08:28:50 +02:00
|
|
|
|
2014-01-27 06:23:15 +01:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -f $(OBJECTS) $(LIBRARY) $(DEPFILES)
|
|
|
|
|
|
|
|
-include $(DEPFILES)
|