Root/cntr/fw/cntr/Makefile

Source at commit 5514c336a503d1b7febfaeec78b71d956c75d928 created 13 years 7 months ago.
By Werner Almesberger, Completed the basic counter firmware. Now it just has to work ...
1#
2# cntr/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 = cntr
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