214f3b8bf1
As result of this, a new examples package is now created. Note, this is only effective with 'SHARED=copies' (the default), as the 'SHARED=symlinks' mechanism will create a symlink to the source tree version of the file(s). Sponsored by: The FreeBSD Foundation
18 lines
300 B
Makefile
18 lines
300 B
Makefile
# $FreeBSD$
|
|
|
|
PACKAGE=examples
|
|
FILESDIR=${SHAREDIR}/examples/libusb20
|
|
TARGETS= bulk control
|
|
CFLAGS+= -Wall
|
|
|
|
all: $(TARGETS)
|
|
|
|
bulk: bulk.o util.o
|
|
$(CC) $(CFLAGS) -o bulk bulk.o util.o -lusb
|
|
|
|
control: control.o util.o
|
|
$(CC) $(CFLAGS) -o control control.o util.o -lusb
|
|
|
|
clean:
|
|
rm -f $(TARGETS) *.o *~
|