1# 2# Copyright 2003-2005 Milan Babuskov 3# 4# This file is part of Njam (http://njam.sourceforge.net). 5# 6# Njam is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or 9# (at your option) any later version. 10# 11# Njam is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with Njam in file COPYING; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19# 20# Set the variables. 21# Invoke make with: make -f makefile.b32 -a -c 22# 23INCLUDE_PATH = c:\work\sdl\include 24LIB_PATH = c:\work\sdl\lib 25BCC_PATH = c:\borland\bcc55 26 27OBJECTS = njam.obj njamedit.obj njamnet.obj njamgame.obj njammap.obj njamfont.obj njamutils.obj sdl_main.obj 28PROGRAM = njam 29 30all: $(PROGRAM) 31 32$(PROGRAM): $(OBJECTS) $(PROGRAM).res 33 $(BCC_PATH)\bin\ilink32 -L$(LIB_PATH) -L$(BCC_PATH)\LIB -aa -Tpe -c $(OBJECTS) \ 34 sdl_main.obj, $(PROGRAM), , sdl.lib import32.lib c0w32.obj cw32.lib sdl_mixer.lib sdl_net.lib sdl_image.lib, , $(PROGRAM).res 35 36njam.obj: src\njam.obj 37njamedit.obj: src\njamedit.obj 38njamnet.obj: src\njamnet.obj 39njamgame.obj: src\njamgame.obj 40njammap.obj: src\njammap.obj 41njamfont.obj: src\njamfont.obj 42njamutils.obj: src\njamutils.obj 43 44.cpp.obj: 45 $(BCC_PATH)\bin\bcc32 -DWIN32 -tW -I$(INCLUDE_PATH) -c $< 46 47sdl_main.obj: 48 $(BCC_PATH)\bin\bcc32 -M -DWIN32 -tW -w-par -w-aus -I$(INCLUDE_PATH) -c src\sdl_main.c 49 50.rc.res: 51 brcc32 -r $< 52 53clean: 54 del *.obj 55 del *.exe 56 del *.res 57 del *.map 58 del *.tds 59 del *.rws 60 del *.il? 61 62run: all 63 $(PROGRAM) -w 64