summaryrefslogtreecommitdiffstats
path: root/tmp/save/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tmp/save/Makefile')
-rw-r--r--tmp/save/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/tmp/save/Makefile b/tmp/save/Makefile
new file mode 100644
index 0000000..50546a5
--- /dev/null
+++ b/tmp/save/Makefile
@@ -0,0 +1,54 @@
+#! /usr/bin/make -f
+
+################################################################################
+# Copyright (C) 2019 Alejandro Colomar Andrés
+# SPDX-License-Identifier: GPL-2.0-only
+################################################################################
+# *AUTHOR*
+# FULL NAME "Alejandro Colomar Andrés"
+# EMAIL "1903716@gmail.com"
+################################################################################
+
+################################################################################
+# dependencies
+
+OBJ = \
+ save.o
+
+SAVE_INC = \
+ $(INC_DIR)/vision-artificial/save/save.hpp \
+ $(LIBALX_INC_DIR)/libalx/base/errno/errno_str.hpp \
+ $(LIBALX_INC_DIR)/libalx/base/stddef/restrict.hpp \
+ $(INC_DIR)/vision-artificial/user/iface.hpp
+SAVE_SRC = \
+ $(SRC_DIR)/save/save.cpp
+
+################################################################################
+# target: dependencies
+# action
+
+PHONY := all
+all: $(OBJ)
+
+
+save.s: $(SAVE_SRC) $(SAVE_INC)
+ @echo " CC vision-artificial/save/$@"
+ $(Q)$(CXX) $(CXXFLAGS) -I $(INC_DIR) -S $< -o $@
+save.o: save.s
+ @echo " AS vision-artificial/save/$@"
+ $(Q)$(AS) $< -o $@
+
+
+PHONY += clean
+clean:
+ @echo " RM *.o *.s"
+ $(Q)rm -f *.o *.s
+
+################################################################################
+# Declare the contents of the .PHONY variable as phony.
+.PHONY: $(PHONY)
+
+
+################################################################################
+######## End of file ###########################################################
+################################################################################