Root/
| 1 | # |
| 2 | # ubb-patgen/Makefile - Build the UBB pattern generator |
| 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 | |
| 13 | CC = mipsel-openwrt-linux-gcc |
| 14 | CFLAGS = -g -Wall -O9 -fno-tree-cselim -I../libubb/include |
| 15 | LDFLAGS = |
| 16 | LDLIBS = -L../libubb -lubb -lm -lrt -lpthread -ldl |
| 17 | |
| 18 | MAIN = ubb-patgen |
| 19 | OBJS = ubb-patgen.o |
| 20 | |
| 21 | .PHONY: all static clean spotless |
| 22 | |
| 23 | all: $(MAIN) |
| 24 | |
| 25 | static: |
| 26 | $(MAKE) LDFLAGS=-static |
| 27 | |
| 28 | $(MAIN): $(OBJS) |
| 29 | |
| 30 | clean: |
| 31 | rm -f $(OBJS) |
| 32 | |
| 33 | spotless: clean |
| 34 | rm -f $(MAIN) |
| 35 |
Branches:
master
