GPP=g++
CXXFLAGS=-O2 `wx-config --unicode=no --cppflags`
LDFLAGS=-s -lwx_gtk2_mac-2.8 `wx-config --libs` 
OBJS_DIR=../../release.mac/complement

all: ../../bin/complement.bin ../../bin/complement_wrap.bin

include Makefile.common

clean:
	rm -rf ${OBJS} ../../bin/complement.bin ../../bin/complement_wrap.bin
	rm -f core

../../bin/complement.bin: ${OBJS_DIR} ${OBJS}
	${GPP} ${OBJS} ${LDFLAGS} -o $@

../../bin/complement_wrap.bin: complement_wrap.cpp
	${GPP} complement_wrap.cpp -O2 -o $@

${OBJS_DIR}:
	mkdir ${OBJS_DIR}