Advertisement
Guest User

Untitled

a guest
Mar 5th, 2012
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.54 KB | None | 0 0
  1. CC=arm-none-linux-gnueabi-gcc
  2. SYSROOT=/home/joel/bin/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../arm-none-linux-gnueabi/libc
  3. IROOT=
  4. IDIR=
  5. ILIST=$(patsubst %,-I$(IROOT)/%,$(IDIR))
  6. LIBS=
  7. CFLAGS=$(ILIST) -march=armv7-a -mcpu=cortex-a8 \
  8.     -Wl,-rpath=$(SYSROOT)/lib:$(SYSROOT)/usr/lib \
  9.     -Wl,--dynamic-linker=$(SYSROOT)/lib/ld-linux.so.3
  10. DEPS=gpio_wrapper.h
  11.  
  12. %.o: %.c $(DEPS)
  13.     $(CC) -c -o $@ $< $(CFLAGS)
  14.  
  15. gpio_test: gpio_test.o gpio_wrapper.o
  16.     $(CC) -g gpio_test.o gpio_wrapper.o $(CFLAGS) $(LIBS) -o gpio_test
  17.  
  18. .PHONY: clean
  19.  
  20. clean:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement