File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -62,24 +62,20 @@ LIB = $(LIB_STATIC) $(LIB_SHARE)
62
62
63
63
all : $(LIB )
64
64
65
- ifneq (,$(findstring NOSAMPLES,$(MAKEFLAGS)))
66
- make -C sample/
67
- else
68
-
69
- endif
70
-
71
-
72
-
73
65
$(LIB ) : $(OBJS )
74
- $(AR ) cq $(LIB_STATIC ) $(OBJS )
75
- $(CXX ) -shared -Wl,-soname,$(LIB_SHARE ) -o $(LIB_SHARE ) $(OBJS )
66
+ $(AR) cq $(LIB_STATIC) $(OBJS)
67
+ $(CXX) -shared -Wl,-soname,$(LIB_SHARE) -o $(LIB_SHARE) $(OBJS)
76
68
77
69
clean :
78
- rm -f $(LIB_STATIC ) $(LIB_SHARE ) $(OBJS )
70
+ rm -f $(LIB_STATIC) $(LIB_SHARE) $(OBJS)
79
71
80
72
install :
81
- cp -rf $(DIR ) /$(LIB_STATIC ) /usr/local/lib/
82
- cp -rf $(DIR ) /$(LIB_SHARE ) /usr/local/lib/
83
- cp -rf $(DIR ) /hardware /usr/local/include/
84
- cp -rf $(DIR ) /libraries /usr/local/include/
85
- cp -rf $(DIR ) /sample/core.h /usr/local/include/
73
+ cp -rf $(DIR)/$(LIB_STATIC) /usr/local/lib/
74
+ cp -rf $(DIR)/$(LIB_SHARE) /usr/local/lib/
75
+ cp -rf $(DIR)/hardware /usr/local/include/
76
+ cp -rf $(DIR)/libraries /usr/local/include/
77
+ cp -rf $(DIR)/sample/core.h /usr/local/include/
78
+
79
+ samples :
80
+ make -C sample/
81
+
Original file line number Diff line number Diff line change 1
1
Installation instructions:
2
2
3
- "$ make"
4
- "$ sudo make install"
5
-
3
+ Run "$ make" first then if you want to build the examples run
4
+ "$ make samples". Finally run "$ sudo make install" to copy headers and libraries to your pcduino
6
5
You can’t perform that action at this time.
0 commit comments