forked from kukulski/BeagleBoneUDPLED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (30 loc) · 1022 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# CFLAGS = -O3
CFLAGS = -std=c++0x
CC = g++
BUNDLE = Makefile main.cpp UDPSender.cpp UDPSender.h tclled.h tclled.c
VERSION = 1.1
ARCHIVE = udplights
LIBS = -lm
all: udplights tallwide
archive: $(BUNDLE)
mkdir $(ARCHIVE)-$(VERSION)
cp $(BUNDLE) $(ARCHIVE)-$(VERSION)/
tar cvfz $(ARCHIVE)-$(VERSION).tar.gz $(ARCHIVE)-$(VERSION)
rm -rf $(ARCHIVE)-$(VERSION)
clean:
$(RM) *.o
$(RM) $(ARCHIVE)-$(VERSION).tar.gz
udplights: main.o UDPSender.o tclled.o
$(CC) $(CFLAGS) $(LIBS) -o $@ $^
udpfast: udpfast.o UDPSender.o tclled.o
$(CC) $(CFLAGS) $(LIBS) -lpthread -o $@ $^
tallwide: tallwide.o UDPSender.o tclled.o
$(CC) $(CFLAGS) $(LIBS) -o $@ $^
dithered: dithered.o UDPSender.o tclled.o
$(CC) $(CFLAGS) $(LIBS) -o $@ $^
dithered.o: dithered.cpp UDPSender.h TCLZoned.hxx Options.hxx
tallwide.o: tallwide.cpp UDPSender.h TCLZoned.hxx Options.hxx
tclled.o: tclled.c tclled.h
udpfast.o: udpfast.cpp UDPSender.h
UDPSender.o: UDPSender.cpp UDPSender.h
main.o: main.cpp UDPSender.h TCLFast.hxx