make: Add support for mingw

This commit is contained in:
Jan Lindemann 2007-07-13 10:49:58 +00:00 committed by Jan Lindemann
commit 65ba4f3cfd
5 changed files with 47 additions and 9 deletions

View file

@ -4,7 +4,11 @@
# $Id$
ifeq ($(EXE),)
ifneq ($(TARGET),mingw)
EXE = $(notdir $(shell pwd))
else
EXE = $(notdir $(shell pwd)).exe
endif
endif
include $(MODDIR)/make/defs.mk
@ -22,7 +26,12 @@ valgrind:
valgrind ./$(EXE) $(EXE_ARGS)
run:
rm -f $(CORE)
ifeq ($(TARGET),mingw)
wine ./$(EXE) $(EXE_ARGS)
else
./$(EXE) $(EXE_ARGS)
endif
stop:
killall ./$(EXE)
kill: