blob: 043015cdf6911daffbaaf506b332762609686dd2 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Makefile - CDAL
CXX=g++
INCLUDE=-I../os_wrappers -fPIC -I/usr/include/libusb-1.0
CFLAGS=-g $(INCLUDE)
CXXFLAGS=$(CFLAGS)
LIBS= -shared -lstdc++ -lusb-1.0
LD=$(CXX) $(CXXFLAGS)
ifndef TARGET
TARGET=libcdal.so
endif
.PHONY: all
all: $(TARGET)
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $^
SOURCE_FILES= \
./AsyncCommunication.cpp \
./CDAL.cpp \
./CommDevice.cpp \
./CommDeviceManager.cpp \
./CommException.cpp \
./LibusbDevice.cpp \
./stdafx.cpp \
../os_wrappers/CriticalSection.cpp \
../os_wrappers/Event.cpp \
../os_wrappers/Thread.cpp \
HEADER_FILES= \
./AsyncCommunication.h \
./CDAL.h \
./CommDevice.h \
./CommDeviceManager.h \
./CommException.h \
./Debug.h \
./LibusbDevice.h \
./stdafx.h \
../os_wrappers/CriticalSection.h \
../os_wrappers/Event.h \
../os_wrappers/Thread.h \
../os_wrappers/Utilities.h
OBJS= \
./AsyncCommunication.o \
./CDAL.o \
./CommDevice.o \
./CommDeviceManager.o \
./CommException.o \
./LibusbDevice.o \
./stdafx.o \
../os_wrappers/CriticalSection.o \
../os_wrappers/Event.o \
../os_wrappers/Thread.o \
SRCS=$(SOURCE_FILES) $(HEADER_FILES)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
.PHONY: clean
clean:
-rm -f -v $(OBJS) $(TARGET) CDAL.dep *.orig
.PHONY: depends
depends:
-$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MM $(filter %.c %.cc %.cpp %.cxx,$(SRCS)) > CDAL.dep
-include CDAL.dep
|