Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #DEBUG = -g -O0
- DEBUG = -O3
- CC = gcc
- INCLUDE = -I/usr/local/include -I../wiringPi
- CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe
- LDFLAGS = -L/usr/local/lib -L../wiringPi
- LIBS = -lwiringPi
- # Should not alter anything below this line
- ###############################################################################
- SRC = gpio.c
- OBJ = gpio.o
- all: gpio
- gpio: gpio.o /usr/local/lib/libwiringPi.a
- @echo [LD]
- @$(CC) -o $@ gpio.o $(LDFLAGS) $(LIBS)
- .c.o:
- @echo [CC] $<
- @$(CC) -c $(CFLAGS) $< -o $@
- clean:
- rm -f $(OBJ) gpio *~ core tags
- tags: $(SRC)
- @echo [ctags]
- @ctags $(SRC)
- depend:
- makedepend -Y $(SRC)
- install:
- cp gpio /usr/local/bin
- chown root.root /usr/local/bin/gpio
- chmod 4755 /usr/local/bin/gpio
- mkdir -p /usr/local/man/man1
- cp gpio.1 /usr/local/man/man1
- uninstall:
- rm -f /usr/local/bin/gpio
- rm -f /usr/local/man/man1/gpio.1
- # DO NOT DELETE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement