# Makefile.
# $Id: Makefile 267 2010-03-01 02:29:15Z sirakaba $

# Define i/o files.
OBJS     = lychee.o cls_config.o cls_filedroptarget.o cls_listctrl.o dlg_make.o dlg_process.o frm_main.o functions.o TPIHandle.o
OUT_EXE  = ../../bin/lychee
DIR_OBJ  = ../tmp
DIR_SHR  = ../../share
DIR_XRC  = $(DIR_SHR)/xrc
DIR_LOC  = $(DIR_SHR)/locale
XRCS     = frm_main.xrc dlg_make.xrc dlg_process.xrc
POT      = lychee.pot
IN_ADD   = $(DIR_LOC)/$(POT)

include ../common/Makefile.default

$(DIR_XRC)/%.xrc: $(addprefix ui/,%.fbp)
	wxformbuilder -g $<

$(DIR_LOC)/$(POT): $(addprefix $(DIR_XRC)/,$(XRCS))
	wxrc --gettext $^ | xgettext -C -k"_" --from-code=utf-8 -D ./ -o $@ *.cpp -
