Root/atrf/fw/atspi/Makefile

Source at commit c2dd23840ce5875deca09673fcb8abb8dc3a8e7a created 13 years 7 months ago.
By Werner Almesberger, Moved fw/ and tools/ into atrf/ as well.
1#
2# atspi/Makefile - Makefile for USB to SPI translator (for AT86RF230)
3#
4# Written 2010 by Werner Almesberger
5# Copyright 2010 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14MAIN = atspi
15OBJS = $(MAIN) usb descr version ep0
16
17F32XBASE = ../../../../f32xbase
18
19include $(F32XBASE)/fw/common/Makefile.system
20include $(F32XBASE)/fw/common/Makefile.common
21
22CFLAGS += -I../common -I../include
23LDFLAGS += --code-size $(PAYLOAD_SIZE) --code-loc $(PAYLOAD_START)
24
25USB_ID = $(shell \
26  ( echo '\#include "config.h"'; echo USB_VENDOR:USB_PRODUCT; ) | \
27  cpp -I../common -I../include | sed '/^ *$$/d;/^\#/d' )
28
29.PHONY: dfu
30
31dfu:
32        dfu-util -d $(USB_ID) -D $(MAIN).bin
33

Archive Download this file



interactive