-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
38 lines (24 loc) · 1.14 KB
/
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
CFLAGS = -W -Wall -O3 -std=c99
CXXFLAGS = -W -Wall -O3 -std=c++11
.PHONY : clean default
default : asi-test-ORIG asi-test asi-test-RE asi-test-c-compatibility
asi-test-ORIG : asi-test.o asi-enum-strings.o
$(CXX) $^ libASICamera2.a -lusb-1.0 -lpthread -o $@
asi-test : asi-test.o libUSB.o asi-enum-strings.o
$(CXX) $^ -lusb-1.0 libASICamera2_patched.a -lpthread -o $@
asi-test-RE : asi-test.o libUSB.o libASICamera2_ReverseEngineered.o asi-enum-strings.o
$(CXX) $^ -lusb-1.0 -lpthread -o $@
asi-test-c-compatibility : asi-test-c-compatibility.o
$(CXX) $^ libASICamera2.a -lusb-1.0 -lpthread -o $@
asi-test.o : asi-test.cc asi-enum-strings.h
asi-test-c-compatibility.o : asi-test-c-compatibility.c
asi-enum-strings.o : asi-enum-strings.cc asi-enum-strings.h
libUSB.o : libUSB.c
libASICamera2_ReverseEngineered.o : libASICamera2_ReverseEngineered.c
libASICamera2_patched.a : libASICamera2.a
clean :
$(RM) asi-test-ORIG asi-test-RE asi-test asi-test-c-compatibility
$(RM) asi-test.o libUSB.o asi-test-c-compatibility.o libASICamera2_ReverseEngineered.o asi-enum-strings.o
$(RM) usb_control_transfer.log
$(RM) libASICamera2_patched.a
$(RM) *~