mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-16 21:32:49 +02:00
35 lines
681 B
Makefile
35 lines
681 B
Makefile
#
|
|
# ubbctl/Makefile - Build the UBB control utility
|
|
#
|
|
# 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 -I../libubb/include
|
|
LDFLAGS =
|
|
LDLIBS = -L../libubb -lubb
|
|
|
|
MAIN = ubbctl
|
|
OBJS = ubbctl.o
|
|
|
|
.PHONY: all static clean spotless
|
|
|
|
all: $(MAIN)
|
|
|
|
static:
|
|
$(MAKE) LDFLAGS=-static
|
|
|
|
$(MAIN): $(OBJS)
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
spotless: clean
|
|
rm -f $(MAIN)
|