1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-25 23:34:05 +02:00
antorcha/tools/ant-txt/Makefile

38 lines
717 B
Makefile
Raw Normal View History

#
# tools/ant-txt/Makefile - Build the Antorcha text composer
#
# Written 2012 by Werner Almesberger
# Copyright 2012 Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
MAIN = ant-txt
CFLAGS = -g -Wall -I.. \
$(if $(BEN), -static)
2012-11-01 23:13:03 +02:00
LDLIBS = -L../libant -lant
OBJS = ant-txt.o
.PHONY: all ben clean spotless
all: $(MAIN)
ben:
$(MAKE) BEN=y CC=mipsel-openwrt-linux-gcc
$(MAIN): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)
clean:
rm -f $(OBJS)
spotless: clean
rm -f $(MAIN)