summaryrefslogtreecommitdiffstats
path: root/tmp/about/Makefile
blob: 151cf9af0f1e26d5ab44a9f922812e9b2d20d91e (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)/mine-sweeper/about/about.h			\
		$(LIBALX_INC_DIR)/libalx/base/compiler/size.h		\
		$(LIBALX_INC_DIR)/libalx/base/errno/error.h
ABOUT_SRC	=							\
		$(SRC_DIR)/about/about.c

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

PHONY := all
all: $(OBJ)


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