# -*- mode: Makefile; -*-
# $Id: Makefile.conf.in,v 1.6 2003/09/16 21:54:04 grumbel Exp $
#
# This file contains all compiler options used to build ClanLib.
#

PACKAGES = $(patsubst %,%-@LT_RELEASE@,$(LIBS))
@WIN32_TRUE@ CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads
@WIN32_FALSE@CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -pthread
@WIN32_FALSE@LDFLAGS += -ldl

#EXAMPLE_BIN contains list of example binaries to build

all: $(EXAMPLE_BIN)@EXEEXT@

$(EXAMPLE_BIN)@EXEEXT@: $(OBJF)
	$(CXX) $(CXXFLAGS) $(OBJF) -o $(EXAMPLE_BIN)@EXEEXT@ `pkg-config --libs $(PACKAGES)` $(EXTRA_LIBS)

clean:
	rm -f $(OBJF) $(EXAMPLE_BIN)@EXEEXT@

%.o : %.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@

#configuration settings

