#
# Makefile for demo with PicoQuant libhh500lib.so

LIBPATH = /opt/picoquant/hh500lib/

# Flags

CC = gcc

WARN = -Wall -Wno-format
COPTS = -g -O

CFLAGS = $(WARN) $(COPTS)

# Rules

%.o: %.c
	$(CC) -c $(CFLAGS) -I$(LIBPATH) -o $@ $<

# Variables

BINS = contmode
SRCS = contmode.c
OBJS = $(SRCS:%.c=%.o)

# Main target

all: $(BINS)

# Dependencies

contmode: $(OBJS)
	$(CC) $(OBJS) $(LIBPATH)libhh500lib.so -o $@

# Misc

clean:
	rm -f *.o *~ ~* *.bck core
	rm -f $(BINS)

