view Makefile.w32 @ 176:f265e7274a45

Add a 'NONBUILD' target list for non-builded targets, use it for win32 subdir creation.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Nov 2010 07:53:45 +0200
parents 1b6bc8bf6ac3
children 829457be9eea
line wrap: on
line source

#
# For win32 version cross-compilation with MinGW suite @ Linux
#

# Set PATH to include MinGW cross compiler path FIRST!
PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin

# C-compiler, flags and linker flags
CC=gcc
CFLAGS=-DHAVE_STRING_H -Ipdcurses

# Library path must be defined correctly here
LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s

# Link PDCurses static library here .. you will want to change this
ifeq ($(SDL),y)
LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL
else
LDFLAGS+=pdcurses/libpdcurses.a
endif

# Miscellaneous
EXEEXT=.exe
OBJPATH=./win32/
BINPATH=./win32/
#BINPATH=/misc/wine_c/
NONBUILD=$(OBJPATH)

include Makefile.gen

$(OBJPATH):
	mkdir $@