#====================
#====== Macros ======
#====================

# For MSYS1.0, define "CFLAGS = -std=c99"
# in your build env

#====== OpenTaxSolver GUI programs; in ../../bin/ ======
OTS_GUI := \
	ots_gui2 \
	notify_popup

# List of OTS GUI programs in ../../bin/
EXE_OTS_GUI := $(patsubst %,../../bin/%.exe, $(OTS_GUI))

#===================
#====== Rules ======
#===================

all: $(EXE_OTS_GUI)

# Pattern rule for GUI programs in ../../bin/
# includes dependency on any (all) gtk modules
$(EXE_OTS_GUI): ../../bin/%.exe: %.c    gtk_utils.c gtk_utils.h  gtk_file_browser.c
	gcc -$(CFLAGS) -O -Wall `pkg-config --cflags gtk+-2.0` $< `pkg-config --libs gtk+-2.0`  -o $@

clean:
	rm -f $(EXE_OTS_GUI)

