Root/tools/ant-cl/Makefile

Source at commit bf2e2c30463d22b5e34fa795eb98b35a855d90ae created 11 years 1 hour ago.
By Werner Almesberger, tornado/led/led.cmp: update for new components and changed references
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
14MAIN = ant-cl
15
16CFLAGS = -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
22LDLIBS = -L../../../ben-wpan/tools/lib -latrf \
23     $(if $(NOGFX),, $(shell sdl-config --libs) -lSDL_gfx) \
24     $(if $(BEN),, -lusb)
25
26OBJS = ant-cl.o hash.o $(if $(NOGFX),, plot.o)
27
28.PHONY: all ben clean spotless update ping off
29
30all: $(MAIN)
31
32ben:
33        $(MAKE) NOGFX=y BEN=y CC=mipsel-openwrt-linux-gcc
34
35$(MAIN): $(OBJS)
36        $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
37
38clean:
39        rm -f $(OBJS)
40
41spotless: clean
42        rm -f $(MAIN)
43
44update:
45        ./ant-cl -F ../../fw/antorcha.bin
46
47ping:
48        ./ant-cl -P
49
50off:
51        ./ant-cl /dev/null
52

Archive Download this file

Branches:
master
tornado-v1



interactive