3 # wiringPi - Wiring Compatable library for the Raspberry Pi
5 # Copyright (c) 2012 Gordon Henderson
6 #################################################################################
7 # This file is part of wiringPi:
8 # https://projects.drogon.net/raspberry-pi/wiringpi/
10 # wiringPi is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU Lesser General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
15 # wiringPi is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public License
21 # along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
22 #################################################################################
31 CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
35 # Should not alter anything below this line
36 ###############################################################################
38 SRC = wiringPi.c wiringPiFace.c wiringSerial.c wiringShift.c \
41 lcd.c piHiPri.c piThread.c
43 OBJ = wiringPi.o wiringPiFace.o wiringSerial.o wiringShift.o \
46 lcd.o piHiPri.o piThread.o
52 @ar rcs $(TARGET) $(OBJ)
58 @$(CC) -c $(CFLAGS) $< -o $@
61 rm -f $(OBJ) $(TARGET) *~ core tags Makefile.bak
72 install -m 0755 -d /usr/local/lib
73 install -m 0755 -d /usr/local/include
74 install -m 0644 wiringPi.h /usr/local/include
75 install -m 0644 wiringSerial.h /usr/local/include
76 install -m 0644 wiringShift.h /usr/local/include
77 install -m 0644 gertboard.h /usr/local/include
78 install -m 0644 piNes.h /usr/local/include
79 install -m 0644 lcd.h /usr/local/include
80 install -m 0644 libwiringPi.a /usr/local/lib
84 rm -f /usr/local/include/lcd.h
85 rm -f /usr/local/include/wiringShift.h
86 rm -f /usr/local/include/wiringPi.h
87 rm -f /usr/local/lib/libwiringPi.a
93 wiringPi.o: wiringPi.h
94 wiringPiFace.o: wiringPi.h
95 wiringSerial.o: wiringSerial.h
96 wiringShift.o: wiringPi.h wiringShift.h
97 gertboard.o: gertboard.h
98 piNes.o: wiringPi.h piNes.h
99 lcd.o: wiringPi.h lcd.h
100 piHiPri.o: wiringPi.h
101 piThread.o: wiringPi.h