Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC=arm-none-linux-gnueabi-gcc
- SYSROOT=/home/joel/bin/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../arm-none-linux-gnueabi/libc
- IROOT=
- IDIR=
- ILIST=$(patsubst %,-I$(IROOT)/%,$(IDIR))
- LIBS=
- CFLAGS=$(ILIST) -march=armv7-a -mcpu=cortex-a8 \
- -Wl,-rpath=$(SYSROOT)/lib:$(SYSROOT)/usr/lib \
- -Wl,--dynamic-linker=$(SYSROOT)/lib/ld-linux.so.3
- DEPS=gpio_wrapper.h
- %.o: %.c $(DEPS)
- $(CC) -c -o $@ $< $(CFLAGS)
- gpio_test: gpio_test.o gpio_wrapper.o
- $(CC) -g gpio_test.o gpio_wrapper.o $(CFLAGS) $(LIBS) -o gpio_test
- .PHONY: clean
- clean:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement