#
#  Makefile for PCC II
#
#  This defines the non-standard parts of the Windows build (standard rules
#  are in Rules-windows.mak).
#

## Dependency generator needs $(OBJEXT)
OBJEXT = obj

## Output formatter needs !include
FMT_INCLUDE = !include
FMT_SAFE_NAMES = yes

## Tweaks
CXXFLAGS +=
LDFLAGS +=

# This all sucks (but a little less than before).
CXX_pcc-v2        :+= /subsystem:windows
FILES_pcc-v2      :+= arch/win32-bcc55/SDL_main.c
CXX_playvcr       :+= /subsystem:windows
FILES_playvcr      :+= arch/win32-bcc55/SDL_main.c
CXX_piced         :+= /subsystem:windows
FILES_piced       :+= arch/win32-bcc55/SDL_main.c

# We need CFLAGS to compile SDL_main.obj. FIXME.
CFLAGS = $(CXXFLAGS)

# Platform library
TARGETS += platf
TYPE_platf = lib
FILES_platf = arch/win32-bcc55/platform.cc arch/win32-bcc55/dirs.cc \
        arch/win32-bcc55/output.cc arch/generic/file.cc \
        arch/win32-bcc55/shell.cc

## Configuration for cpluslib. Should go in 01_cpluslib someday, but currently
## it must be here because it references an operating system command which,
## under Windows, means the shell is too stupid to deal with a generic version
## using forward slashes.
cpluslib/cpluslib/config.h: cpluslib/cpluslib/config.in
        type cpluslib\cpluslib\config.in > cpluslib\cpluslib\config.h
