summaryrefslogtreecommitdiffstats
path: root/tmp/about/Makefile
blob: 36f47a290aab4c186f393aba00402bab5f512e6d (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /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		=							\
		about.o

ABOUT_INC	=							\
		$(INC_DIR)/vision-artificial/about/about.h		\
		$(LIBALX_INC_DIR)/libalx/base/errno/errno_str.h		\
		$(LIBALX_INC_DIR)/libalx/base/stdio/sprint_file.h
ABOUT_SRC	=							\
		$(SRC_DIR)/about/about.c

################################################################################
# target: dependencies
#	action

PHONY := all
all: $(OBJ)


about.s: $(ABOUT_SRC) $(ABOUT_INC)
	@echo	"	CC	vision-artificial/about/$@"
	$(Q)$(CC) $(CFLAGS) -I $(INC_DIR) -S $< -o $@
about.o: about.s
	@echo	"	AS	vision-artificial/about/$@"
	$(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 ###########################################################
################################################################################