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
|
2013-01-07 13:24:11 +02:00
|
|
|
LDFLAGS =
|
2013-01-04 10:40:19 +02:00
|
|
|
LDLIBS = -L../libubb -lubb
|
|
|
|
|
|
|
|
MAIN = ubbctl
|
|
|
|
OBJS = ubbctl.o
|
|
|
|
|
2013-01-07 13:24:11 +02:00
|
|
|
.PHONY: all static clean spotless
|
2013-01-04 10:40:19 +02:00
|
|
|
|
|
|
|
all: $(MAIN)
|
|
|
|
|
2013-01-07 13:24:11 +02:00
|
|
|
static:
|
|
|
|
$(MAKE) LDFLAGS=-static
|
|
|
|
|
2013-01-04 10:40:19 +02:00
|
|
|
$(MAIN): $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f $(MAIN)
|