[go: up one dir, main page]

Menu

[r15]: / engine / makefile.be  Maximize  Restore  History

Download this file

73 lines (48 with data), 1.5 kB

 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
#
# Makefile for IRE, BeOS version
#
all: ire ed chknpc crypter
# Use the C or C++ compiler
CC = gcc
LD = gcc -Llibs/beos
CFLAGS = -I. -Ilibs/beos/allegro -Ijpeg/dos -g -Wunused -O6 -DALLEGRO -DBGUI -DUSE_SDLSOUND
Xopts = `allegro-config --libs`
Lib_files = -lalleg -lithe -ljpeg -lbgui
# Include the makefile core
include makefile.all
# BeOS-dependent components
be_obj = darken_a.o audio/sdl.o
#resize_obj = resize.o doslib.o memory.o dummy2a.o endian.o
# Makefile rules
ire: $(ire_obj) $(be_obj)
$(LD) $(Xopts) $(ire_obj) $(be_obj) $(Lib_files) -o ire
ed: $(ed_obj) $(be_obj)
$(LD) $(Xopts) $(ed_obj) $(be_obj) $(Lib_files) -o ed
resedit: $(res_obj) $(be_obj)
$(LD) $(Xopts) $(res_obj) $(be_obj) $(Lib_files) -o res
resize: $(resize_obj)
$(LD) $(Xopts) $(resize_obj) $(Lib_files) -o tools/resize_map
chknpc: $(chknpc_obj)
$(LD) $(Xopts) $(chknpc_obj) $(Lib_files) -o tools/chknpc
crypter: $(crypter_obj)
$(LD) $(Xopts) $(crypter_obj) $(Lib_files) -o tools/crypter
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.cc
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.cpp
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.S
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.asm
nasm -f elf $< -o $@
clean:
-rm -f $(ed_obj) $(ire_obj) $(res_obj) $(build_obj) $(resize_obj)
-rm -f $(lin_obj) $(chknpc_obj) $(crypter_obj)
-rm -f ire
-rm -f ed
-rm -f res
-rm -f tools/build
-rm -f tools/chknpc
-rm -f tools/resize_map
-rm -f bootlog.* game.cfg