--- sbbs/src/conio/makefile 2018/04/24 16:41:23 1.1 +++ sbbs/src/conio/makefile 2018/04/24 16:42:17 1.1.1.2 @@ -8,7 +8,7 @@ # usage: make # ######################################################################### -# $Id: makefile,v 1.1 2018/04/24 16:41:23 root Exp $ +# $Id: makefile,v 1.1.1.2 2018/04/24 16:42:17 root Exp $ # To build a DLL, use "make [OPTIONS] DLLIBS=1 dl-mtlib" # You *MUST* do a clean between a static and dynamic lib on Win32! @@ -20,8 +20,19 @@ SRC_ROOT = .. # Cross platform/compiler definitions !include ..\build\Common.bmake # defines clean and output directory rules +!ifdef USE_SDL_AUDIO +OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE) +!else !ifdef USE_SDL OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE) +OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)SDL_win32_main$(OFILE) +OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE) +NEED_BITMAP = 1 +!endif +!endif + +!ifdef NEED_BITMAP +OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)bitmap_con$(OFILE) !endif #The following is necessary only when DLL-exporting wrapper functions