# $Id: $

SUBDIRS = img 
bin_PROGRAMS = fityk 

EXTRA_DIST = winres.rc 

# tested only on MinGW 
if OS_WIN32
AM_LDFLAGS = -mwindows 
ms_win_res = winres.o
$(ms_win_res): winres.rc img/fityk.ico 
	$(RC) -o $@ `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS)\
			    @WX_CPPFLAGS@ \
				    | sed -e 's/-mthreads//g' ` \
		    $<
HELP_DEF=
else
HELP_DEF= -DHELP_DIR=\"$(pkgdatadir)\"
endif  #OS_WIN32

fityk_SOURCES = cmn.cpp cmn.h gradient.cpp gradient.h fancyrc.cpp fancyrc.h \
		inputline.cpp inputline.h callback.h \
		listptxt.cpp listptxt.h dload.cpp dload.h \
		statbar.cpp statbar.h pane.cpp pane.h sidebar.cpp sidebar.h \
		dataedit.cpp dataedit.h defmgr.cpp defmgr.h \
		setdlg.cpp setdlg.h print.cpp print.h sdebug.cpp sdebug.h \
		plot.cpp plot.h aplot.cpp aplot.h mplot.cpp mplot.h \
		dialogs.cpp dialogs.h gui.cpp gui.h app.cpp app.h

AM_CPPFLAGS = @WX_CPPFLAGS@ @CPPFLAGS_3RDPARTY@ $(HELP_DEF)
AM_CXXFLAGS = @WX_CXXFLAGS_ONLY@ 
LDADD = ../libfityk.la @WX_LIBS@ $(ms_win_res)


inputline: sample_inputline.cpp inputline.cpp inputline.h callback.h
	`wx-config --cxx` `wx-config --cxxflags` -g -Wall -W -O0 -o $@ $< inputline.cpp `wx-config --libs`



syntax highlighted by Code2HTML, v. 0.9.1