# Purpose: This file is a part of English Teacher source code
#          It is intended to build executable for Linux OS with GCC
# Author:  Oleg Lypkan (C) 2011

.PHONY: all clean

OBJECTS=et.o mainwindow.o settings.o SettingsDialog.o systray.o
FLAGS=-Os -Wall # -Os optimizes code size (includes -O2 optimization)

all: et

et: $(OBJECTS)
	$(CXX) -o $@ $^ -s `wx-config --libs`

%.o: ../../../%.cpp
	$(CXX) `wx-config --cxxflags` $(FLAGS) -o $@ -c $^

clean:
	rm -f *.o
	rm -f et*
