Root/
| Source at commit 9081d91ca8d1e8d008bfde93944eb528d0da2898 created 11 years 2 hours ago. By Werner Almesberger, tornado/cpu/: rearrange things and fix ERC problems | |
|---|---|
| 1 | # |
| 2 | # tools/ant-cl/Makefile - Build the Antorcha command-line tool |
| 3 | # |
| 4 | # Written 2012 by Werner Almesberger |
| 5 | # Copyright 2012 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 | |
| 14 | MAIN = ant-cl |
| 15 | |
| 16 | CFLAGS = -g -I../../fw -I../../../ben-wpan/tools/include \ |
| 17 | -I../../../ben-wpan/atusb/fw/include \ |
| 18 | -Wall \ |
| 19 | $(if $(NOGFX),, -DGFX $(shell sdl-config --cflags)) \ |
| 20 | $(if $(BEN), -static) |
| 21 | |
| 22 | LDLIBS = -L../../../ben-wpan/tools/lib -latrf \ |
| 23 | $(if $(NOGFX),, $(shell sdl-config --libs) -lSDL_gfx) \ |
| 24 | $(if $(BEN),, -lusb) |
| 25 | |
| 26 | OBJS = ant-cl.o hash.o $(if $(NOGFX),, plot.o) |
| 27 | |
| 28 | .PHONY: all ben clean spotless update ping off |
| 29 | |
| 30 | all: $(MAIN) |
| 31 | |
| 32 | ben: |
| 33 | $(MAKE) NOGFX=y BEN=y CC=mipsel-openwrt-linux-gcc |
| 34 | |
| 35 | $(MAIN): $(OBJS) |
| 36 | $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS) |
| 37 | |
| 38 | clean: |
| 39 | rm -f $(OBJS) |
| 40 | |
| 41 | spotless: clean |
| 42 | rm -f $(MAIN) |
| 43 | |
| 44 | update: |
| 45 | ./ant-cl -F ../../fw/antorcha.bin |
| 46 | |
| 47 | ping: |
| 48 | ./ant-cl -P |
| 49 | |
| 50 | off: |
| 51 | ./ant-cl /dev/null |
| 52 | |
Branches:
master
tornado-v1
