X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=examples%2FMakefile;h=defd510bb69f6a51634845129c69d3b361c4ca27;hb=e8f6258004e59b1452806e5c45bb6598d0158dd2;hp=e1d29a01a571e3fb8163707acac95fbf688ef1fb;hpb=db925cea180cf3f67ee13e0a5a0cd2fc9d3ce564;p=wiringPi.git diff --git a/examples/Makefile b/examples/Makefile index e1d29a0..defd510 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -35,27 +35,26 @@ LDLIBS = -lwiringPi -lpthread -lm # Should not alter anything below this line ############################################################################### -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 \ +SRC = blink.c test1.c test2.c speed.c lcd.c wfi.c isr.c isr-osc.c \ + piface.c gertboard.c nes.c \ + pwm.c tone.c servo.c \ delayTest.c serialRead.c serialTest.c okLed.c OBJ = $(SRC:.c=.o) BINS = $(SRC:.c=) -# Note: -# Please don't waste your time by emailling me or doing a -# pull request with changes to make all these targets. It -# is intentional that I do it this way as it now takes too -# long to compile them all and most people will not run -# them anyway... -GH- - all: @cat README.TXT @echo " $(BINS)" | fmt @echo "" +really-all: $(BINS) + +blink: blink.o + @echo [link] + @$(CC) -o $@ blink.o $(LDFLAGS) $(LDLIBS) + test1: test1.o @echo [link] @$(CC) -o $@ test1.o $(LDFLAGS) $(LDLIBS) @@ -80,6 +79,10 @@ isr: isr.o @echo [link] @$(CC) -o $@ isr.o $(LDFLAGS) $(LDLIBS) +isr-osc: isr-osc.o + @echo [link] + @$(CC) -o $@ isr-osc.o $(LDFLAGS) $(LDLIBS) + piface: piface.o @echo [link] @$(CC) -o $@ piface.o $(LDFLAGS) $(LDLIBS)