include ../make_config.inc
include ../make_defs.inc

SRCS	:= $(wildcard *.cxx)
PROGS	:= $(basename ${SRCS})

# RPATH = -Wl,-rpath=../lib
# RPATH = -Wl,-,$(shell pwd)/../lib

%:	%.cxx
	${LD} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} $< ../lib/${LIB_NAME} -o $@
	${FLTK_CONFIG} --post $@

all:	${PROGS}

clean:
	rm -f ${PROGS}
