1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-24 03:57:11 +02:00
ben-blinkenlights/ubbctl/Makefile

35 lines
681 B
Makefile
Raw Normal View History

2013-01-07 13:25:16 +02:00
#
# 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.
#
2013-01-04 10:40:19 +02:00
CC = mipsel-openwrt-linux-gcc
CFLAGS = -g -Wall -O9 -I../libubb/include
LDFLAGS =
2013-01-04 10:40:19 +02:00
LDLIBS = -L../libubb -lubb
MAIN = ubbctl
OBJS = ubbctl.o
.PHONY: all static clean spotless
2013-01-04 10:40:19 +02:00
all: $(MAIN)
static:
$(MAKE) LDFLAGS=-static
2013-01-04 10:40:19 +02:00
$(MAIN): $(OBJS)
clean:
rm -f $(OBJS)
spotless: clean
rm -f $(MAIN)