# # Copyright 2003-2005 Milan Babuskov # # This file is part of Njam (http://njam.sourceforge.net). # # Njam is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Njam is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Njam in file COPYING; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Set the variables. # Invoke make with: make -f makefile.b32 -a -c # INCLUDE_PATH = c:\work\sdl\include LIB_PATH = c:\work\sdl\lib BCC_PATH = c:\borland\bcc55 OBJECTS = njam.obj njamedit.obj njamnet.obj njamgame.obj njammap.obj njamfont.obj njamutils.obj sdl_main.obj PROGRAM = njam all: $(PROGRAM) $(PROGRAM): $(OBJECTS) $(PROGRAM).res $(BCC_PATH)\bin\ilink32 -L$(LIB_PATH) -L$(BCC_PATH)\LIB -aa -Tpe -c $(OBJECTS) \ sdl_main.obj, $(PROGRAM), , sdl.lib import32.lib c0w32.obj cw32.lib sdl_mixer.lib sdl_net.lib sdl_image.lib, , $(PROGRAM).res njam.obj: src\njam.obj njamedit.obj: src\njamedit.obj njamnet.obj: src\njamnet.obj njamgame.obj: src\njamgame.obj njammap.obj: src\njammap.obj njamfont.obj: src\njamfont.obj njamutils.obj: src\njamutils.obj .cpp.obj: $(BCC_PATH)\bin\bcc32 -DWIN32 -tW -I$(INCLUDE_PATH) -c $< sdl_main.obj: $(BCC_PATH)\bin\bcc32 -M -DWIN32 -tW -w-par -w-aus -I$(INCLUDE_PATH) -c src\sdl_main.c .rc.res: brcc32 -r $< clean: del *.obj del *.exe del *.res del *.map del *.tds del *.rws del *.il? run: all $(PROGRAM) -w