-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile.ami
88 lines (69 loc) · 2.83 KB
/
makefile.ami
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# D-Day: Normandy by Vipersoft
# ************************************
# * $Source: /usr/local/cvsroot/dday/src/makefile.ami,v $
# * $Revision: 1.3 $
# * $Date: 2002/07/24 00:16:32 $
# *
# ***********************************
#
# Copyright (C) 2002 Vipersoft
#
# This program 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.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# A special thanks goes out to Steffen Haeuser for arranging this port.
#
# For more information, see: http://www.hyperion-entertainment.com.
#
##############################################################################
OBJS = g_arty.o g_cmds.o g_combat.o g_dll.amiga.o g_ents.o \
g_func.o g_items.o g_main.o g_maps.o g_misc.o g_monster.o \
g_objectives.o g_phys.o g_save.o g_spawn.o g_svcmds.o g_target.o \
g_trigger.o g_turret.o g_utils.o g_weapon.o m_actor.o m_flash.o m_insane.o \
m_move.o p_classes.o p_client.o p_generic_wep.o p_hud.o p_menu.o p_observer.o \
p_trail.o p_view.o p_weapon.o q_shared.o u_entmgr.o u_findfunc.o x_fbomb.o \
x_fire.o z_removed.o amidll.o g_ai.o
OBJSCPP =
EXE = gameppc.dll
OTHER =
CCM68K = gcc -V 2.95 -m68060 -fomit-frame-pointer -I/ade/include -s -noixemul
CC603 = ppc-amigaos-gcc -V 2.95.3 -mcpu=603e -mmultiple -warpup
CC604 = ppc-amigaos-gcc -V 2.95.3 -mcpu=604e -mmultiple -warpup
CC750 = ppc-amigaos-gcc -V 2.95.3 -mcpu=750 -mmultiple -warpup
CC = $(CC604)
CODEGEN = -D_GAME_DLL -I../qcommon -I../game -I../client \
-D_inline="static __inline" -D__saveds= -D__int64="long long" -DMAX_PATH=255 -DFALSE=0 -DTRUE=1 \
-DNDEBUG \
#-D_DEVEL \
OPTIMIZE = -O3
CFLAGS= $(CODEGEN) $(OPTIMIZE)
LIBS = -lz -ldllppc -lppcamiga
%.o : %.c
$(CC) $(CFLAGS) -S $< -o $*.s
$(CC) $(CFLAGS) -c $*.s -o $*.o
%.o : %.cpp
$(CC) $(CFLAGS) -fno-exceptions -fno-rtti -S $< -o $*.s
$(CC) $(CFLAGS) -c $*.s -o $*.o
ASMS = $(OBJS:.o=.s) $(OBJSCPP:.o=.s)
$(EXE) : $(OBJS) $(OBJSCPP)
$(CC) $(OBJS) $(OBJSCPP) $(LIBS) -o $@
depend :
$(CC) $(CFLAGS) -MM $(OBJS:.o=.c) $(OBJSCPP:.o=.cpp) >depend
clean :
rm $(EXE) $(OBJS) $(OBJSCPP) $(ASMS) $(OTHER) depend
#DEPENDENCIES
#include depend