forked from stephank/surreal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
executable file
·102 lines (81 loc) · 2.54 KB
/
makefile
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#=============================================================================
# Unreal Tournament makefile for Linux.
#
# Revision history:
# * Created by Mike Danylchuk
# * 00/01/06 Joshua Garvin
# - Changed the name from "Dedicated Unreal Server makefile for
# Linux" to "Unreal Tournament makefile for Linux".
# - Changed the name of the backup file from ucc-<date>.tar.gz to
# OpenUT-<date>.tar.gz.
# * 00/01/22 Daniel Vogel
# - hooked up the SDL stuff
# * 00/03/22 Daniel Vogel
# - hooked up SDLAudio
#=============================================================================
# Unreal directory. (Location of OpenUT source code)
#(Required by makefile-header.)
UNREAL_DIR = .
# Include global definitions.
include $(UNREAL_DIR)/makefile-header
# No default sub-make arguments.
ARGS =
#-----------------------------------------------------------------------------
# Rules.
#-----------------------------------------------------------------------------
.PHONY : all
all : ucc sdlgldrv alaudio opengl
#all: audio
#all : ucc sdldrv xdrv xmesagldrv xlaunch audio sdlaudio sdlgldrv
.PHONY : opengl
opengl :
@$(MAKE) $(ARGS) --directory=$(OPENGL_SRC)
.PHONY : ucc
ucc :
@$(MAKE) $(ARGS) --directory=$(UCC_SRC)
.PHONY : xlaunch
xlaunch :
@$(MAKE) $(ARGS) --directory=$(XLAUNCH_SRC)
.PHONY : xdrv
xdrv :
@$(MAKE) $(ARGS) --directory=$(XDRV_SRC)
.PHONY : xmesagldrv
xmesagldrv :
@$(MAKE) $(ARGS) --directory=$(XMESAGLDRV_SRC)
.PHONY : sdldrv
sdldrv :
@$(MAKE) $(ARGS) --directory=$(SDLDRV_SRC)
.PHONY : sdlgldrv
sdlgldrv :
@$(MAKE) $(ARGS) --directory=$(SDLGLDRV_SRC)
.PHONY : glidedrv
glidedrv :
@$(MAKE) $(ARGS) --directory=$(GLIDEDRV_SRC)
.PHONY : alaudio
alaudio :
@$(MAKE) $(ARGS) --directory=$(ALAUDIO_SRC)
.PHONY : sdlaudio
sdlaudio :
@$(MAKE) $(ARGS) --directory=$(SDLAUDIO_SRC)
.PHONY : nullrender
nullrender :
@$(MAKE) $(ARGS) --directory=$(NULLRENDER_SRC)
#-----------------------------------------------------------------------------
# Maintenance.
#-----------------------------------------------------------------------------
# Backup source code.
.PHONY : backup
backup :
@-mkdir -p $(BACKUP_DIR)
@tar zcvf $(BACKUP_DIR)/OpenUT-$(VERSION)-`date +%y%m%d`.tar.gz \
$(ALL_SRC_DIRS) [Mm]akefile*
# Create tags table.
.PHONY : tags
tags :
@etags --c++ $(ALL_TAGS)
# Pass custom targets to module makefiles.
.DEFAULT :
@$(MAKE) ARGS=$@ --no-print-directory
#-----------------------------------------------------------------------------
# The End.
#-----------------------------------------------------------------------------