.SUFFIXES:
.SUFFIXES: .o .c 
.SUFFIXES: .o .cc 
.SUFFIXES: .o .cpp

VPATH= ..

.c.o :
	@$(RM) -f $@ $@sh
	@if test "x$(PICFLAGS)" != x; then \
	  echo "$(CC) -c -o $@sh $(PICFLAGS) $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
	  $(CC) -c -o $@sh $(PICFLAGS) $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
	fi
	$(CC) -c -o $@ $(CFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<

.cc.o :
	@$(RM) -f $@ $@sh
	@if test "x$(PICFLAGS)" != x; then \
	  echo "$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
	  $(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
	fi
	$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<

.cpp.o :
	@$(RM) -f $@ $@sh
	@if test "x$(PICFLAGS)" != x; then \
	  echo "$(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<";\
	  $(CXX) -c -o $@sh $(PICFLAGS) $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<;\
	fi
	$(CXX) -c -o $@ $(CXXFLAGS) -I.. $(WX_INCLUDES) $(ADD_COMPILE) $(WX_DEFINES) $<

clean_obj::
	@$(RM) *.o *.osh
	@if test "x$(SRC_DIR)" != x ; then \
	  for each in $(SRC_DIR) xxx; do \
	    if test -d $$each ; then \
              $(RM) $$each/*.o $$each/*.osh ; \
	    fi; \
	  done; \
	fi;

include $(RULES_GENERIC)/depend
