Browse Source

add libmcp and libpifacedigital

tags/v1.0
Robin Thoni 10 years ago
parent
commit
3682cae36a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Makefile

+ 2
- 1
Makefile View File

1
 CXX = g++
1
 CXX = g++
2
 CXXFLAGS = -Wall -Wextra -Werror -pedantic -std=c++1y -g3 -ggdb3
2
 CXXFLAGS = -Wall -Wextra -Werror -pedantic -std=c++1y -g3 -ggdb3
3
 SRC = main.cpp mainclass.cpp
3
 SRC = main.cpp mainclass.cpp
4
+LDLIBS = -lpifacedigital -lmcp23s17
4
 OBJ = $(addprefix src/, $(SRC:.cpp=.o))
5
 OBJ = $(addprefix src/, $(SRC:.cpp=.o))
5
 
6
 
6
 
7
 
7
 all: camotion-pifaceo
8
 all: camotion-pifaceo
8
 
9
 
9
 camotion-pifaceo: $(OBJ)
10
 camotion-pifaceo: $(OBJ)
10
-	$(LINK.cpp) $(OBJ) $(OUTPUT_OPTION)
11
+	$(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS)
11
 
12
 
12
 clean:
13
 clean:
13
 	rm -f $(OBJ)
14
 	rm -f $(OBJ)

Loading…
Cancel
Save