-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 784 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 784 Bytes
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
#
# Copyright (C) 2019 Microchip Technology Inc. All rights reserved.
#
# SPDX-License-Identifier: MIT
#
all: senda_example p9bit_example user_example
CFLAGS ?= -Wall -g
LDFLAGS ?= -static
senda_example_objs = \
senda_example.o \
custom_termios2.o
p9bit_example_objs = \
p9bit_example.o \
custom_termios2.o
user_example_objs = \
user_example.o \
custom_termios2.o
senda_example: $(senda_example_objs)
$(CC) $(senda_example_objs) $(CFLAGS) -o $@ $(LDFLAGS)
p9bit_example: $(p9bit_example_objs)
$(CC) $(p9bit_example_objs) $(CFLAGS) -o $@ $(LDFLAGS)
user_example: $(user_example_objs)
$(CC) $(user_example_objs) $(CFLAGS) -o $@ $(LDFLAGS)
clean:
rm -f senda_example $(senda_example_objs) \
p9bit_example $(p9bit_example_objs) \
user_example $(user_example_objs)