# Makefile.
# $Id: Makefile.gcc.mak,v 1.1 2006/12/30 12:27:10 sirakaba Exp $

# Define compilers.
CC = g++
CPPFLAGS = -c -O3 -Wall -W `wx-config --cppflags`
LDFLAGS  = -s `wx-config --libs`

# Define i/o files.
OBJS  = frontend-wx.o cls_filedroptarget.o dlg_make.o dlg_extract.o dlg_process.o frm_main.o functions.o ../common/handle/TPIHandle.o
OUT_EXE  = ../../bin/frontend

.PHONY: all clean
.SUFFIXES: .cpp .o

all: $(OBJS)
	$(CC) $(LDFLAGS) -o $(OUT_EXE) $^

clean:
	rm -f $(OBJS) $(OUT_EXE)

.cpp.o:
	$(CC) $(CPPFLAGS) -o $@ $<
