change testprog build to use libftdi1

The CentOS installation of libftdi1 differs a bit from the Debian-ish,
e.g. in its use of a /usr/include/libftdi1 subdirectory and the name of
the library. This patch takes that detail into account.
parent 3d6fdd3b
OBJS = liboasis-usb-att.o
CFLAGS = -I. -DGIT_VERSION="dummy"
CFLAGS = -DGIT_VERSION="dummy"
LDLIBS = -lftdi1
all: lib testprog
lib: $(OBJS)
ar rc liboasis-usb-att.a $(OBJS)
testprog: test.o liboasis-usb-att.a
$(CC) $(CFLAGS) $^ -o $@ $(LDLIBS) $(LDFLAGS)
clean:
rm -f *.a *.o testprog
......@@ -9,7 +9,7 @@
#include <stdio.h>
#include <errno.h>
#include "liboasis-usb-att.h"
#include <ftdi.h>
#include <libftdi1/ftdi.h>
#define OAU_VENDOR_ID 0x1556 /* CERN USB Vendor ID */
#define OAU_DEVICE_ID 0x0443 /* oau USB Device ID */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment