Root/ubb-la/Makefile

1#
2# ubb-la/Makefile - Build the UBB logic analyzer
3#
4# Written 2013 by Werner Almesberger
5# Copyright 2013 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
13CC = mipsel-openwrt-linux-gcc
14CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include \
15         $(if $(LIBUBB),-DBEN,) \
16     $(shell sdl-config --cflags)
17LDFLAGS =
18#LDLIBS = -L../libubb -lubb -lm -lrt $(shell sdl-config --libs) -lSDL_gfx
19LIBUBB = -L../libubb -lubb
20LDLIBS = $(LIBUBB) -lm -lrt -lSDL -lSDL_gfx -lpthread -ldl
21
22MAIN = ubb-la
23OBJS = ubb-la.o gui.o
24
25.PHONY: all static host clean spotless
26
27all: $(MAIN)
28
29static:
30        $(MAKE) LDFLAGS=-static
31
32host:
33        $(MAKE) CC=cc LIBUBB= MAIN=try OBJS="gui.o try.o"
34
35$(MAIN): $(OBJS)
36
37clean:
38        rm -f $(OBJS)
39
40spotless: clean
41        rm -f $(MAIN)
42

Archive Download this file

Branches:
master



interactive