Makefile 1011 Bytes
Newer Older
1
2
LSLBASE=../labstreaminglayer/build/install
CXXFLAGS+=-Wall -Wno-sign-compare -I$(LSLBASE)/include
Your Name's avatar
Your Name committed
3
LDFLAGS+=-L$(LSLBASE)/lib -llsl32 -lpigpio -lboost_system -lpthread
Gunter Windau's avatar
azmq rm    
Gunter Windau committed
4
5
6
7
8
9
10
11
12

LDLIBS+=-lzmq -lpthread -lboost_system -lboost_regex  -lboost_program_options
#INCLUDE+=RS-232
CXXFLAGS+=-Wall -std=c++11

# LDFLAGS+=-lpigpio
CXX=g++
CC=g++

Your Name's avatar
Your Name committed
13
TARGETS=lslder_1chan lslder_4chan lslder_8chan sendrand
14
15
16
17
18
19
20
21
22
23
all: $(TARGETS)

#lslder : CPPFLAGS+=-DLSLDER_8CHAN
#lslder: lslder_8chan.o led.o

lslder_8chan: CXXFLAGS+=-DLSLDER_8CHAN
lslder_8chan: lslder_8chan.o led.o
lslder_8chan.o: lslder_uni.cc
	$(CXX) $(CXXFLAGS) -c $< -o $@

24
25
26
27
28
lslder_4chan: CXXFLAGS+=-DLSLDER_4CHAN
lslder_4chan: lslder_4chan.o led.o
lslder_4chan.o: lslder_uni.cc
	$(CXX) $(CXXFLAGS) -c $< -o $@

29
30
31
32
33
lslder_1chan: CXXFLAGS+=-DLSLDER_1CHAN
lslder_1chan: lslder_1chan.o led.o
lslder_1chan.o: lslder_uni.cc
	$(CXX) $(CXXFLAGS) -c $< -o $@

Gunter Windau's avatar
azmq rm    
Gunter Windau committed
34
sendrand: sendrand.cc
35
lslder_4chan_proto: lslder_4chan_proto.cc
Your Name's avatar
Your Name committed
36
lslder_4chan_proto: LDFLAGS+=-lwiringPi
37
38
39
40

clean:
	rm -f $(TARGETS) *.o