1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-18 08:53:09 +02:00
ben-wpan/tools/lib/Makefile
Werner Almesberger a75edf0cc0 tools/lib/: copied USB device opening code over from f32xbase
We shared it across projects so far, but since the code will be further
customized, it's better to keep it local (at least for a while).

- usbopen.h, usbopen.c: moved over f32xbase/include/usb.h and
  f32xbase/lib/usb.c (for further customization)
- Makefile (CFLAGS, OBJS_host): use usbopen.o instead of usb.o from
  f32xbase
- atusb.c: use usbopen.h instead of usb.h from f32xbase (also removes
  include path ambiguity)
2011-04-10 07:43:42 -03:00

37 lines
745 B
Makefile

#
# lib/Makefile - Build the ATRF library
#
# Written 2010-2011 by Werner Almesberger
# Copyright 2010-2011 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.
#
LIB = libatrf.a
include ../Makefile.common
OBJS_host = atusb.o usbopen.o
OBJS_ben_jlime = atben.o
OBJS_ben_openwrt = atben.o
OBJS = atrf.o misctxrx.o $(OBJS_$(TARGET))
.PHONY: all clean spotless
all: $(LIB)
$(LIB): $(OBJS)
$(AR) cr $@ $^
clean:
rm -f $(OBJS)
rm -f $(OBJS_ben_jlime) $(OBJS_ben_openwrt) $(OBJS_host)
spotless: clean
rm -f $(LIB)