Root/tools/ant-gui/Makefile

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-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
14MAIN = ant-gui
15
16CFLAGS = -g -Wall -I.. $(shell sdl-config --cflags) \
17     $(if $(BEN), -static)
18
19LDLIBS = -L../libant -lant $(shell sdl-config --libs) -lSDL_gfx
20
21OBJS = ant-gui.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