Root/tools/ant-txt/Makefile

Source at commit 121acf6ffad8f1bcd4b08e50e293e597880b68eb created 10 years 11 months ago.
By Werner Almesberger, tornado/cpu/cpu.brd: make connection to the MCU's GND pad straighter
1#
2# tools/ant-txt/Makefile - Build the Antorcha text composer
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-txt
15
16CFLAGS = -g -Wall -I.. \
17     $(if $(BEN), -static)
18
19LDLIBS = -L../libant -lant
20
21OBJS = ant-txt.o
22
23.PHONY: all ben clean spotless
24
25all: $(MAIN)
26
27ben:
28        $(MAKE) BEN=y CC=mipsel-openwrt-linux-gcc
29
30$(MAIN): $(OBJS)
31        $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
32
33clean:
34        rm -f $(OBJS)
35
36spotless: clean
37        rm -f $(MAIN)
38

Archive Download this file

Branches:
master
tornado-v1



interactive