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.
 
 
 

27 lines
573 B

  1. LDLIBS=-lwiringPi -lcrypt -lm -lrt
  2. CFLAGS=-g
  3. LDFLAGS=-g
  4. all: cc_chipid cc_read cc_write cc_erase
  5. clean:
  6. rm -f cc_chipid cc_read cc_write cc_erase
  7. cc_erase : cc_erase.o CCDebugger.o
  8. $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  9. cc_write : cc_write.o CCDebugger.o
  10. $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  11. cc_read : cc_read.o CCDebugger.o
  12. $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  13. cc_chipid : cc_chipid.o CCDebugger.o
  14. $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
  15. cc_chipid.o : cc_chipid.c CCDebugger.h
  16. $(CC) $(CFLAGS) -c $*.c
  17. CCDebugger.o : CCDebugger.c CCDebugger.h
  18. $(CC) $(CFLAGS) -c $*.c