mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-08-23 02:29:19 +03:00
35 lines
660 B
Makefile
35 lines
660 B
Makefile
#
|
|
# libubb/Makefile - Build the UBB library
|
|
#
|
|
# Written 2012 by Werner Almesberger
|
|
# Copyright 2012 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.
|
|
#
|
|
|
|
|
|
TARGET = mipsel-openwrt-linux-
|
|
CC = $(TARGET)gcc
|
|
|
|
CFLAGS = -g -Wall -Iinclude
|
|
LIB = libubb.a
|
|
|
|
OBJS = ubb.o
|
|
HDRS = ubb/ubb.h ubb/regbase.h ubb/regs4740.h
|
|
|
|
.PHONY: all clean spotless
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
$(AR) cr $@ $^
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
spotless: clean
|
|
rm -f $(LIB)
|