Root/ubbctl/Makefile

1#
2# ubbctl/Makefile - Build the UBB control utility
3#
4# Written 2013 by Werner Almesberger
5# Copyright 2013 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13CC = mipsel-openwrt-linux-gcc
14CFLAGS = -g -Wall -O9 -I../libubb/include
15LDFLAGS =
16LDLIBS = -L../libubb -lubb
17
18MAIN = ubbctl
19OBJS = ubbctl.o
20
21.PHONY: all static clean spotless
22
23all: $(MAIN)
24
25static:
26        $(MAKE) LDFLAGS=-static
27
28$(MAIN): $(OBJS)
29
30clean:
31        rm -f $(OBJS)
32
33spotless: clean
34        rm -f $(MAIN)
35

Archive Download this file

Branches:
master



interactive