Port of flash_cc2531 to FreeBSD. This is likely more just include a wiringPi compatible library for FreeBSD. Any new files are BSD licensed and NOT GPLv3 license.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
837 B

  1. LDLIBS=-L. -lwiringPi -lcrypt -lm -lrt -lgpio
  2. CFLAGS=-g -I. -Wall -Werror -O2
  3. LDFLAGS=-g
  4. all: cc_chipid cc_read cc_write cc_erase
  5. test:
  6. ls *.h *.c Makefile | entr sh -c 'make clean && make'
  7. clean:
  8. rm -f cc_chipid cc_read cc_write cc_erase
  9. cc_erase: cc_erase.o CCDebugger.o libwiringPi.a
  10. $(CC) $(LDFLAGS) -o $@ $> $(LDLIBS)
  11. cc_write: cc_write.o CCDebugger.o libwiringPi.a
  12. $(CC) $(LDFLAGS) -o $@ $> $(LDLIBS)
  13. cc_read: cc_read.o CCDebugger.o libwiringPi.a
  14. $(CC) $(LDFLAGS) -o $@ $> $(LDLIBS)
  15. cc_chipid: cc_chipid.o CCDebugger.o libwiringPi.a
  16. $(CC) $(LDFLAGS) -o $@ $> $(LDLIBS)
  17. .SUFFIXES: .o
  18. .c.o:
  19. #cc -o ${.TARGET} -c ${.IMPSRC}
  20. $(CC) $(CFLAGS) -c $<
  21. CCDebugger.o : CCDebugger.c CCDebugger.h
  22. $(CC) $(CFLAGS) -c $*.c
  23. wiringPi.o : wiringPi.c wiringPi.h
  24. $(CC) $(CFLAGS) -c $*.c
  25. libwiringPi.a: wiringPi.o
  26. $(AR) crs $@ $>