Root/
| Source at commit 30c683effd7ab362d1517950700c96cfa09e45e8 created 11 years 17 days ago. By Werner Almesberger, tornado/fw/sim/p: pass arguments to "alg"; label graphs; better separate "up" | |
|---|---|
| 1 | # |
| 2 | # tools/ant-gui/Makefile - Build the Antorcha GUI |
| 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-gui |
| 15 | |
| 16 | CFLAGS = -g -Wall -I.. $(shell sdl-config --cflags) \ |
| 17 | $(if $(BEN), -static) |
| 18 | |
| 19 | LDLIBS = -L../libant -lant $(shell sdl-config --libs) -lSDL_gfx |
| 20 | |
| 21 | OBJS = ant-gui.o |
| 22 | |
| 23 | .PHONY: all ben clean spotless |
| 24 | |
| 25 | all: $(MAIN) |
| 26 | |
| 27 | ben: |
| 28 | $(MAKE) BEN=y CC=mipsel-openwrt-linux-gcc |
| 29 | |
| 30 | $(MAIN): $(OBJS) |
| 31 | $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS) |
| 32 | |
| 33 | clean: |
| 34 | rm -f $(OBJS) |
| 35 | |
| 36 | spotless: clean |
| 37 | rm -f $(MAIN) |
| 38 | |
Branches:
master
tornado-v1
