diff options
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile index c833404..5927739 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,15 +17,27 @@ ## along with this library. If not, see <http://www.gnu.org/licenses/>. ## +CPROTO=cproto +PROG=kvm + V=1 -default: usbhid.hex +default: ${PROG}.elf +CSRCS=dfu.c hid.c main.c usb.c -BINARY = usbhid -LDSCRIPT = ../stm32-h103.ld +BINARY = ${PROG} +OBJS = ${CSRCS:%.c=%.o} -include ../Makefile.include +program: ${PROG}.elf + echo halt | nc -t localhost 4444 + echo flash write_image erase ${PWD}/$< | nc -t localhost 4444 + echo reset run | nc -t localhost 4444 -program: usbhid.hex +protos: + echo -n > prototypes.h + ${CPROTO} $(INCLUDES) $(DEFINES) -e -v ${CSRCS} > prototypes.h.tmp + mv -f prototypes.h.tmp prototypes.h + +include ../Makefile.include |