1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-05 12:38:27 +02:00
ben-blinkenlights/ubb-la/Makefile
2013-02-01 11:48:46 -03:00

42 lines
967 B
Makefile

#
# ubb-la/Makefile - Build the UBB logic analyzer
#
# Written 2013 by Werner Almesberger
# Copyright 2013 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.
#
CC = mipsel-openwrt-linux-gcc
CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include \
$(if $(LIBUBB),-DBEN,) \
$(shell sdl-config --cflags)
LDFLAGS =
#LDLIBS = -L../libubb -lubb -lm -lrt $(shell sdl-config --libs) -lSDL_gfx
LIBUBB = -L../libubb -lubb
LDLIBS = $(LIBUBB) -lm -lrt -lSDL -lSDL_gfx -lpthread -ldl
MAIN = ubb-la
OBJS = ubb-la.o gui.o
.PHONY: all static host clean spotless
all: $(MAIN)
static:
$(MAKE) LDFLAGS=-static
host:
$(MAKE) CC=cc LIBUBB= MAIN=try OBJS="gui.o try.o"
$(MAIN): $(OBJS)
clean:
rm -f $(OBJS)
spotless: clean
rm -f $(MAIN)