summaryrefslogtreecommitdiffstats
path: root/tmp/ctrl/Makefile
blob: da57c6602ac5baa5cf358ed4d5ca84268a3d49f4 (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
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		=							\
		start.o

START_INC	=							\
		$(INC_DIR)/vision-artificial/ctrl/start.h		\
		$(INC_DIR)/vision-artificial/proc/iface.h		\
		$(INC_DIR)/vision-artificial/save/save.h		\
		$(INC_DIR)/vision-artificial/user/iface.h
START_SRC	=							\
		$(SRC_DIR)/ctrl/start.c

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

PHONY := all
all: $(OBJ)


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