1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-13 05:06:25 +03:00
ben-wpan/fw/boot/Makefile
Werner Almesberger 00f28250c5 Added boot loader for C8051F326 (using f326xbase)
- fw/boot/Makefile: build DFU-capable bootloader from f326xbase
- fw/boot/config.h: product-specific configuration
2010-08-19 01:05:04 -03:00

32 lines
824 B
Makefile

#
# boot/Makefile - Makefile for DFU-capable boot loader
#
# Written 2008, 2010 by Werner Almesberger
# Copyright 2008, 2010 Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
MAIN=boot
OBJS=$(MAIN) usb dfu version
F32XBASE = ../../../f32xbase
include $(F32XBASE)/fw/common/Makefile.system
include $(F32XBASE)/fw/common/Makefile.common
CFLAGS += -DLOW_SPEED
LDFLAGS += --code-size $(PAYLOAD_START)
boot.rel: $(F32XBASE)/fw/boot/boot.c
$(CC) $(CFLAGS) -o $@ -c $<
usb.rel: $(F32XBASE)/fw/common/usb.c
$(CC) $(CFLAGS) -o $@ -c $<
dfu.rel: $(F32XBASE)/fw/boot/dfu.c
$(CC) $(CFLAGS) -o $@ -c $<