chiark / gitweb /
Fixed delayMicroseconds for more than 1 second.
[wiringPi.git] / gpio / Makefile
index 623096c58d4072fb9261f11cfc7356094659e205..883bfc25da918eacd099955031cc5193677deca2 100644 (file)
@@ -30,20 +30,20 @@ INCLUDE     = -I/usr/local/include
 CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
 
 LDFLAGS        = -L/usr/local/lib
-LIBS    = -lwiringPi -lpthread -lm
+LIBS    = -lwiringPi -lwiringPiDev -lpthread -lm
 
 # May not need to  alter anything below this line
 ###############################################################################
 
-SRC    =       gpio.c
+SRC    =       gpio.c extensions.c readall.c
 
 OBJ    =       $(SRC:.c=.o)
 
 all:           gpio
 
-gpio:  gpio.o
+gpio:  $(OBJ)
        @echo [Link]
-       @$(CC) -o $@ gpio.o $(LDFLAGS) $(LIBS)
+       @$(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
        
 .c.o:
        @echo [Compile] $<
@@ -51,7 +51,8 @@ gpio: gpio.o
 
 .PHONEY:       clean
 clean:
-       rm -f $(OBJ) gpio *~ core tags *.bak
+       @echo "[Clean]"
+       @rm -f $(OBJ) gpio *~ core tags *.bak
 
 .PHONEY:       tags
 tags:  $(SRC)
@@ -70,11 +71,14 @@ install:
 .PHONEY:       uninstall
 uninstall:
        @echo "[UnInstall]"
-       rm -f /usr/local/bin/gpio
-       rm -f /usr/local/man/man1/gpio.1
+       @rm -f /usr/local/bin/gpio
+       @rm -f /usr/local/man/man1/gpio.1
 
 .PHONEY:       depend
 depend:
        makedepend -Y $(SRC)
 
 # DO NOT DELETE
+
+gpio.o: extensions.h
+extensions.o: extensions.h