all: gxccd-test

UNAME_S := $(shell uname -s)

LDFLAGS += -I../include -Wall -O2 -lpthread -lm -lusb-1.0
ifeq ($(UNAME_S), Linux)
	LDFLAGS += -lrt # no RT on OSX
endif

gxccd-test: test.c
	$(CC) -o $@ $< ../lib/libgxccd.a $(LDFLAGS)

dist: test.c

clean:
	$(RM) gxccd-test *.o
