File: makefile.b32

package info (click to toggle)
njam 1.25-5
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 5,212 kB
  • ctags: 276
  • sloc: cpp: 3,834; sh: 3,049; perl: 384; ansic: 236; objc: 224; makefile: 158
file content (63 lines) | stat: -rw-r--r-- 1,942 bytes parent folder | download | duplicates (8)
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