/usr/share/doc/libowfs-dev/examples/owcapi/C++/Makefile is in libow-dev 2.8p13+dfsg1-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Makefile for owcapi example program -- invoked separately from this directory
# $Id: Makefile.in,v 1.2 2009/03/24 17:20:09 alfille Exp $
CXXFLAGS = -g -I/usr/include -Wno-deprecated
OBJS = owcapiexample.o
all: owcapiexample
ifeq "$(shell uname)" "Darwin"
# Compile-flags for MacOSX
DARWINLDFLAGS = -L/usr/lib -lowcapi -low -L/usr/lib/x86_64-linux-gnu -lusb
owcapiexample: $(OBJS)
gcc $(CFLAGS) -o $@ $(OBJS) $(DARWINLDFLAGS)
else
# Compile-flags for Linux and Cygwin
LDFLAGS = -L/usr/lib -Wl,--rpath -Wl,/usr/lib -lowcapi
owcapiexample: $(OBJS)
gcc $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) -lstdc++
endif
#%.o: %.cpp
# g++ $(CXXFLAGS) -c -o $@ $<
clean:
$(RM) -f owcapiexample *.o *~ .~ Makefile
|