forked from polybassa/WyLight
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile.in
78 lines (63 loc) · 1.53 KB
/
Makefile.in
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
74
75
76
77
78
GPP=$(CXX)
CFLAGS =-Wall
CFLAGS+=-pedantic
CFLAGS+=-std=c++0x
CLI_DIR=./cli
FW_DIR=./firmware
LIB_DIR=./library
GIT=@GIT@
DOXYGEN=@DOXYGEN@
NDK=@NDK@
WINE=@WINE@
PIC_CC8E=@PIC_CC8E@
OUT_DIR=./binary
INC=-I$(FW_DIR) -I$(LIB_DIR)
OPENGL_LIB=-lGL -lGLU -lglut
TARGETS=test
TARGETS+=cli
MESSAGES="Attention:\n"
ifneq "not_found" "@PIC_CC8E@"
ifneq "" "@PIC_CC8E@"
ifneq "not_found" "@WINE@"
TARGETS+=pic
else
MESSAGES+="install wine and run ./configure again to make pic firmware\n"
endif
else
MESSAGES+="install CC8E.exe from http://www.bknd.com in your home directory and run ./configure again to make pic firmware\n"
endif
else
MESSAGES+="install CC8E.exe from http://www.bknd.com in your home directory and run ./configure again to make pic firmware\n"
endif
ifneq "not_found" "@GL@"
ifneq "not_found" "@GLU@"
ifneq "not_found" "@glut@"
TARGETS+=simu
else
endif
else
endif
else
MESSAGES+="install openGL development library to make simu\n"
endif
ifneq "not_found" "@NDK@"
TARGETS+=android_client
else
MESSAGES+="install android ndk and run ./configure again to make android_client\n"
endif
all: $(TARGETS)
@echo $(MESSAGES)
all_nils: test pic cli
all_pat: test pic simu cli android_client
release: test pic_release cli documentation
test: clean firmware_test library_test
clean: android_clean cli_clean library_clean
@-rm -f recent.txt
@rm -rf $(OUT_DIR)
@echo "cleanup done."
include Makefile.android
include Makefile.library
include Makefile.cli
include Makefile.docu
include Makefile.firmware
.PHONY: clean release test all