summaryrefslogtreecommitdiff
path: root/tools/fip_create/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fip_create/Makefile')
-rw-r--r--tools/fip_create/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/fip_create/Makefile b/tools/fip_create/Makefile
index c72bae53..9f0bf7ac 100644
--- a/tools/fip_create/Makefile
+++ b/tools/fip_create/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2014, ARM Limited and Contributors. All rights reserved.
+# Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -28,6 +28,10 @@
# POSSIBILITY OF SUCH DAMAGE.
#
+MAKE_HELPERS_DIRECTORY := ../../make_helpers/
+include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
+include ${MAKE_HELPERS_DIRECTORY}unix.mk
+
PROJECT = fip_create
OBJECTS = fip_create.o
@@ -43,7 +47,6 @@ endif
INCLUDE_PATHS = -I.
CC := gcc
-RM := rm -rf
.PHONY: all clean
@@ -52,14 +55,14 @@ all: ${PROJECT}
${PROJECT}: ${OBJECTS} Makefile
@echo " LD $@"
${Q}${CC} ${OBJECTS} -o $@
- @echo
+ @${ECHO_BLANK_LINE}
@echo "Built $@ successfully"
- @echo
+ @${ECHO_BLANK_LINE}
%.o: %.c %.h Makefile
@echo " CC $<"
${Q}${CC} -c ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
clean:
- ${Q}${RM} ${PROJECT}
- ${Q}${RM} ${OBJECTS}
+ $(call SHELL_DELETE_ALL, ${PROJECT} ${OBJECTS})
+