-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.be
49 lines (39 loc) · 1.45 KB
/
Makefile.be
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
# Exult makefile for use in BeOS
# It may require a little tweaking. (paths)
# Base of the exult source
SRC=.
### Modify these paths
SDL_CFLAGS=-I/boot/develop/tools/gnupro/include/SDL
SDL_LIBS=-L/boot/develop/tools/gnupro/lib -lSDLmain -lSDL
CPPFLAGS=-DVERSION=\"$(VERSION)\" -DBEOS -DDEBUG -DEXULT_DATADIR=\"data\" \
-DHAVE_ZIP_SUPPORT -I$(SRC)/files/zip \
-I$(SRC)/imagewin -I$(SRC)/shapes -I$(SRC)/data -I$(SRC)/tools \
-I$(SRC)/files -I$(SRC) -I$(SRC)/audio -I$(SRC)/audio/midi_drivers -I$(SRC)/conf \
-I$(SRC)/gumps -I$(SRC)/objs -I$(SRC)/pathfinder -I$(SRC)/usecode
-I$(SRC)/headers -DHAVE_SNPRINTF $(SDL_CFLAGS)
CXXFLAGS=-O2 -Wall
LFLAGS=
LIBS=$(SDL_LIBS) -lmidi -lbe -lz
EXEC=exult
include Makefile.common
beos/exult.rsrc : beos/exult.rsrc
xres -o $(EXEC) beos/exult.rsrc
finishedbinary: $(EXEC)
strip $(EXEC)
xres -o $(EXEC) beos/exult.rsrc
run: $(EXEC)
./$(EXEC)
bindist: finishedbinary
rm -rf exult-$(VERSION)
mkdir exult-$(VERSION)
mkdir exult-$(VERSION)/data
mkdir exult-$(VERSION)/doc
mkdir exult-$(VERSION)/lib
cp $(EXEC) exult-$(VERSION)
cp README FAQ README.BeOS COPYING NEWS AUTHORS ChangeLog exult-$(VERSION)/doc
cp data/exult.flx data/exult_bg.flx data/exult_si.flx exult-$(VERSION)/data
cp data/bodies.txt data/bodies.txt exult-$(VERSION)/data
cp $(HOME)/lib/libSDL.so $(HOME)/lib/README-SDL.txt exult-$(VERSION)/lib
rm -f exult-$(VERSION).x86.beos.zip
zip -r exult-$(VERSION).x86.beos.zip exult-$(VERSION)
rm -rf exult-$(VERSION)