1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

Further cleanup to make the tools build for the "ben" target.

- tools/Makefile.common: set CC to the target-specific compiler
- tools/atspi-id/atspi-id.c: exclude everything USB if HAVE_USB is not set
- tools/atspi-id/atspi-id.c (atspi_usb_handle): rearrange to use a "struct
  atspi_dsc *" argument, so that we don't expose an USB dependency
- tools/lib/Makefile: $(F32XBASE)/lib/usb.o is target-specific. Moved it
  from OBJS to OBJS_host.
- tools/lib/Makefile (clean): remove objects of all targets
This commit is contained in:
Werner Almesberger
2010-09-05 20:51:07 -03:00
parent f20d685f8e
commit bb65155eab
3 changed files with 29 additions and 10 deletions

View File

@@ -16,9 +16,9 @@ LIB = libatspi.a
include ../Makefile.common
CFLAGS += -Wall -I$(F32XBASE)/include
OBJS_host = atusb.o
OBJS_host = atusb.o $(F32XBASE)/lib/usb.o
OBJS_ben = atusd.o
OBJS = $(F32XBASE)/lib/usb.o atspi.o $(OBJS_$(TARGET))
OBJS = atspi.o $(OBJS_$(TARGET))
.PHONY: all clean spotless
@@ -28,7 +28,7 @@ $(LIB): $(OBJS)
$(AR) cr $@ $^
clean:
rm -f $(OBJS)
rm -f $(OBJS) $(OBJS_ben) $(OBJS_host)
spotless: clean
rm -f $(LIB)