Debian Codegraph @

port/linux/Makefile

raw symbols SCIP
1 TARGET = powder
2
3 OFILES = linuxmain.o \
4 ../sdl/hamfake.o \
5 ../../action.o \
6 ../../assert.o \
7 ../../ai.o \
8 ../../artifact.o \
9 ../../bmp.o \
10 ../../build.o \
11 ../../buf.o \
12 ../../control.o \
13 ../../creature.o \
14 ../../dpdf_table.o \
15 ../../encyc_support.o \
16 ../../gfxengine.o \
17 ../../grammar.o \
18 ../../hiscore.o \
19 ../../input.o \
20 ../../intrinsic.o \
21 ../../item.o \
22 ../../map.o \
23 ../../mobref.o \
24 ../../msg.o \
25 ../../name.o \
26 ../../piety.o \
27 ../../rand.o \
28 ../../signpost.o \
29 ../../smokestack.o \
30 ../../speed.o \
31 ../../sramstream.o \
32 ../../stylus.o \
33 ../../victory.o \
34 ../../encyclopedia.o \
35 ../../glbdef.o \
36 ../../credits.o \
37 ../../license.o \
38 ../../gfx/all_bitmaps.o \
39 ../../rooms/allrooms.o
40
41 PREMAKE = ../../support/map2c/map2c \
42 ../../support/tile2c/tile2c \
43 ../../support/bmp2c/bmp2c \
44 ../../support/encyclopedia2c/encyclopedia2c \
45 ../../support/enummaker/enummaker \
46 ../../support/txt2c/txt2c
47
48 all: $(TARGET)
49
50 powder: $(OFILES)
51 $(CXX) -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)
52
53 .cpp.o:
54 $(CXX) -DLINUX -I ../../port/sdl `sdl-config --cflags` -c $< -o $@ $(CXXFLAGS)
55
56 powder-static: premake $(OFILES)
57 # This extra step is from:
58 # http://www.trilithium.com/johan/2005/06/static-libstdc/
59 # and is to try and ensure we end up with a static link
60 # of stdc++.
61 $(RM) libstdc++.a
62 ln -s `$(CXX) -print-file-name=libstdc++.a`
63 $(CXX) -static-libgcc -L. -o $(TARGET) $(OFILES) `sdl-config --libs` $(CXXFLAGS) $(LDFLAGS)
64
65 clean:
66 $(RM) $(OFILES)
67 $(RM) $(TARGET)
68 @for s in $$( echo "$(PREMAKE)" | tr -s '' '\n'); do \
69 $(MAKE) clean -C `dirname $$s`; \
70 done;
71
72 $(PREMAKE):
73 $(MAKE) -C `dirname $@`
74
75 premake: $(PREMAKE)
76 cd ../../rooms ; ./buildrooms.bash
77 cd ../../gfx ; ./rebuild.sh
78 cd ../.. ; support/enummaker/enummaker source.txt
79 cd ../.. ; support/txt2c/txt2c LICENSE.TXT license.cpp
80 cd ../.. ; support/txt2c/txt2c CREDITS.TXT credits.cpp
81 cd ../.. ; support/encyclopedia2c/encyclopedia2c encyclopedia.txt
82