CC = gcc
CFLAGS := -Wall -O3
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
	INCLUDE = ../../bin/unix64/release
	LIB = bmapi64
else
	INCLUDE = ../../bin/unix32/release
	LIB = bmapi
endif
ARCH := $(shell getconf LONG_BIT)

all: example

clean:
	rm -f multichannel_logger.o blflogger.o ff.msc.o multichannel_logger

example:
	$(CC) $(CFLAGS) multichannel_logger.c blflogger.c blfreader.c msgq.c ff.msc.c -I../../include -L$(INCLUDE) -I. -I../multichannel_logger/pcap -L. -l$(LIB) -lpthread -lusb-1.0 -lpcap -o multichannel_logger

