2013-01-07 22:01:51 +02:00
|
|
|
#
|
|
|
|
# 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
|
2013-01-26 00:55:49 +02:00
|
|
|
CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include
|
2013-01-07 22:01:51 +02:00
|
|
|
LDFLAGS =
|
2013-01-16 08:30:04 +02:00
|
|
|
LDLIBS = -L../libubb -lubb -lm -lrt
|
2013-01-07 22:01:51 +02:00
|
|
|
|
|
|
|
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)
|