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