mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-30 17:46:15 +02:00
bac21bf8cb
While -O1 gets rid of the unexpected read in the simple code of a synthetic test, it's still there in the more complex environment we have in ubb-la.c Turning off optimization completely seems to do the trick.
35 lines
689 B
Makefile
35 lines
689 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 -O0 -I../libubb/include
|
|
LDFLAGS =
|
|
LDLIBS = -L../libubb -lubb -lm -lrt
|
|
|
|
MAIN = ubb-la
|
|
OBJS = ubb-la.o
|
|
|
|
.PHONY: all static clean spotless
|
|
|
|
all: $(MAIN)
|
|
|
|
static:
|
|
$(MAKE) LDFLAGS=-static
|
|
|
|
$(MAIN): $(OBJS)
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
spotless: clean
|
|
rm -f $(MAIN)
|