chiark / gitweb /
Lots of changes here. Added new I2C test code, a new serialTest program,
[wiringPi.git] / examples / Makefile
index 738d36c7234f0c37ccdc6d94072dfb57459757c1..3607fc85059d4a3ae9489110b1c2a507b2a9edb2 100644 (file)
@@ -35,10 +35,10 @@ LDLIBS    = -lwiringPi
 # Should not alter anything below this line
 ###############################################################################
 
-SRC    =       test1.c test2.c speed.c lcd.c wfi.c             \
+SRC    =       test1.c test2.c speed.c lcd.c wfi.c isr.c       \
                piface.c gertboard.c nes.c                      \
                pwm.c tone.c servo.c                            \
-               delayTest.c serialRead.c okLed.c
+               delayTest.c serialRead.c serialTest.c okLed.c
 
 OBJ    =       $(SRC:.c=.o)
 
@@ -69,6 +69,10 @@ wfi: wfi.o
        @echo [link]
        @$(CC) -o $@ wfi.o $(LDFLAGS) $(LDLIBS)
 
+isr:   isr.o
+       @echo [link]
+       @$(CC) -o $@ isr.o $(LDFLAGS) $(LDLIBS)
+
 piface:        piface.o
        @echo [link]
        @$(CC) -o $@ piface.o $(LDFLAGS) $(LDLIBS) -lpthread
@@ -93,6 +97,10 @@ serialRead:  serialRead.o
        @echo [link]
        @$(CC) -o $@ serialRead.o $(LDFLAGS) $(LDLIBS)
 
+serialTest:    serialTest.o
+       @echo [link]
+       @$(CC) -o $@ serialTest.o $(LDFLAGS) $(LDLIBS)
+
 okLed: okLed.o
        @echo [link]
        @$(CC) -o $@ okLed.o $(LDFLAGS) $(LDLIBS)