2013-01-23 16:54:23 +02:00
|
|
|
#
|
|
|
|
# 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
|
2013-01-31 02:19:09 +02:00
|
|
|
CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include \
|
2013-02-01 16:48:46 +02:00
|
|
|
$(if $(LIBUBB),-DBEN,) \
|
2013-01-31 02:19:09 +02:00
|
|
|
$(shell sdl-config --cflags)
|
2013-01-23 16:54:23 +02:00
|
|
|
LDFLAGS =
|
2013-01-31 02:19:09 +02:00
|
|
|
#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
|
2013-01-23 16:54:23 +02:00
|
|
|
|
|
|
|
MAIN = ubb-la
|
2013-01-31 02:19:09 +02:00
|
|
|
OBJS = ubb-la.o gui.o
|
2013-01-23 16:54:23 +02:00
|
|
|
|
2013-01-31 02:20:08 +02:00
|
|
|
.PHONY: all static host clean spotless
|
2013-01-23 16:54:23 +02:00
|
|
|
|
|
|
|
all: $(MAIN)
|
|
|
|
|
|
|
|
static:
|
|
|
|
$(MAKE) LDFLAGS=-static
|
|
|
|
|
2013-01-31 02:20:08 +02:00
|
|
|
host:
|
|
|
|
$(MAKE) CC=cc LIBUBB= MAIN=try OBJS="gui.o try.o"
|
|
|
|
|
2013-01-23 16:54:23 +02:00
|
|
|
$(MAIN): $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f $(MAIN)
|