mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-23 04:23:10 +02:00
bb65155eab
- 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
35 lines
709 B
Makefile
35 lines
709 B
Makefile
#
|
|
# lib/Makefile - Build the ATSPI library
|
|
#
|
|
# Written 2010 by Werner Almesberger
|
|
# Copyright 2010 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 = libatspi.a
|
|
|
|
include ../Makefile.common
|
|
|
|
CFLAGS += -Wall -I$(F32XBASE)/include
|
|
OBJS_host = atusb.o $(F32XBASE)/lib/usb.o
|
|
OBJS_ben = atusd.o
|
|
OBJS = atspi.o $(OBJS_$(TARGET))
|
|
|
|
.PHONY: all clean spotless
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
$(AR) cr $@ $^
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(OBJS_ben) $(OBJS_host)
|
|
|
|
spotless: clean
|
|
rm -f $(LIB)
|