1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-12-27 11:41:47 +02:00
ben-blinkenlights/ubb-patgen/Makefile
Werner Almesberger 1d78c01bba ubb-patgen/Makefile (LDLIBS): add -lpthread -ldl
Strangly, using what's supposedly the same toolchain, I didn't seem to
need these items in the past. Or maybe I just never tried a non-static
build.
2013-03-29 20:33:41 -03:00

35 lines
736 B
Makefile

#
# ubb-patgen/Makefile - Build the UBB pattern generator
#
# 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
LDFLAGS =
LDLIBS = -L../libubb -lubb -lm -lrt -lpthread -ldl
MAIN = ubb-patgen
OBJS = ubb-patgen.o
.PHONY: all static clean spotless
all: $(MAIN)
static:
$(MAKE) LDFLAGS=-static
$(MAIN): $(OBJS)
clean:
rm -f $(OBJS)
spotless: clean
rm -f $(MAIN)