1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
#
# 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
|