forked from crystalfontz/cfa_linux_examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (18 loc) · 850 Bytes
/
Makefile
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
#Makefile for Crystalfontz UNIX examples
CC = gcc
LIBS =
CFLAGS = -g -O -Iinclude -Wall
LDFLAGS = -g
LIBSRC = include/serial.c include/cf_packet.c include/show_packet.c
LIBOBJ = $(LIBSRC:%.c=%.o)
all: example-632_634 example-635 example-631 example-633
example-632_634: 632_634/example-632_634.o $(LIBOBJ)
$(CC) $(LDFLAGS) $(LIBOBJ) 632_634/example-632_634.o -o example-632_634
example-631: 631/example-631.o $(LIBOBJ)
$(CC) $(LDFLAGS) $(LIBOBJ) 631/example-631.o -o example-631
example-633: 633/example-633.o $(LIBOBJ)
$(CC) $(LDFLAGS) $(LIBOBJ) 633/example-633.o -o example-633
example-635: 635/example-635.o $(LIBOBJ)
$(CC) $(LDFLAGS) $(LIBOBJ) 635/example-635.o -o example-635
clean:
rm -f $(LIBOBJ) 632_634/example-632_634.o example-632_634 631/example-631.o example-631 633/example-633.o example-633 635/example-635.o example-635