updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / daimonin-svn / Makefile.am
blobb0c8353e7da6494c2401afee5f8eea3f211eada1
1 daimonindir=$(d_bindir)
2 daimonin_PROGRAMS = daimonin daimonin-updater
4 daimonin_SOURCES =  \
5         ../../src/adler32.c \
6         ../../src/anim.c \
7         ../../src/book.c \
8         ../../src/buddy.c \
9         ../../src/chatfilter.c \
10         ../../src/client.c \
11         ../../src/commands.c \
12         ../../src/crc32.c \
13         ../../src/dialog.c \
14         ../../src/event.c \
15         ../../src/filewrap.c \
16         ../../src/font.c \
17         ../../src/group.c \
18         ../../src/ignore.c \
19         ../../src/inffast.c \
20         ../../src/inflate.c \
21         ../../src/inftrees.c \
22         ../../src/interface.c \
23         ../../src/inventory.c \
24         ../../src/item.c \
25         ../../src/kerbholz.c \
26         ../../src/main.c \
27         ../../src/map.c \
28         ../../src/menu.c \
29         ../../src/misc.c \
30         ../../src/physfsrwops.c \
31         ../../src/player.c \
32         ../../src/protocol.c \
33         ../../src/socket.c \
34         ../../src/sound.c \
35         ../../src/sprite.c \
36         ../../src/textwin.c \
37         ../../src/tile_stretcher.c \
38         ../../src/uncompr.c \
39         ../../src/wrapper.c \
40         ../../src/widget.c \
41         ../../src/zutil.c
42 daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@
43 daimonin_OBJDIR = objs
45 daimonin_updater_SOURCES = \
46         ../../src/adler32.c \
47         ../../src/crc32.c \
48         ../../src/inffast.c \
49         ../../src/inflate.c \
50         ../../src/inftrees.c \
51         ../../src/uncompr.c \
52         ../../src/zutil.c \
53         ../../src/updater/linux.c \
54         ../../src/updater/main.c \
55         ../../src/updater/xdelta3.c \
56         ../../src/updater/physfsunpack.c \
57         ../../src/updater/md5.c
59 daimonin_updater_LDADD = @PHYSFS_LIBS@ @CURL_LIBS@
60 daimonin_updater_OBJDIR = updater_objs
62 # NOTE: if building xdelta, run its configure with "--disable-shared"
64 AUTOMAKE_OPTIONS = subdir-objects
65 AM_CFLAGS = @SDL_CFLAGS@ -Wall -DDAI_DEVELOPMENT
66 AM_LDFLAGS = @LDFLAGS@ 
68 install-data-hook:
69 #       @if [ x$$UID = 'x0' -o x$$USER = 'xroot' ]; then \
70 #               echo '***'; \
71 #               echo '*** ROOT INSTALL NOT SUPPORTED YET! Please install as a normal user.'; \
72 #               echo '***'; \
73 #               exit 42; \
74 #       fi;
75         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/sfx
76         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/man
77         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/media
78         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/cache
79         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/logs
80         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/gfx_user
81         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/srv_files
82         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/bitmaps
83         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/icons
84         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/settings
85         $(MKDIR) -p $(DESTDIR)/$(d_datadir)/update
86         $(CP) ../../sfx/*.* $(DESTDIR)/$(d_datadir)/sfx
87         $(CP) -R ../../man/* $(DESTDIR)/$(d_datadir)/man
88         $(CP) ../../media/*.* $(DESTDIR)/$(d_datadir)/media
89         $(CP) ../../cache/*.* $(DESTDIR)/$(d_datadir)/cache
90         $(CP) ../../bitmaps/* $(DESTDIR)/$(d_datadir)/bitmaps
91         $(CP) ../../icons/* $(DESTDIR)/$(d_datadir)/icons
92         $(CP) -R ../../settings/*.* $(DESTDIR)/$(d_datadir)/settings
93         $(CP) ../../srv_files/*.* $(DESTDIR)/$(d_datadir)/srv_files
94         $(CP) ../../update/version $(DESTDIR)/$(d_datadir)/update
95         $(CP) ../../gfx_user/*.* $(DESTDIR)/$(d_datadir)/gfx_user
96         $(CP) ../../daimonin.p0 $(DESTDIR)/$(d_datadir)
97         $(CP) ../../License $(DESTDIR)/$(d_datadir)
98         $(CP) ../../archdef.dat $(DESTDIR)/$(d_datadir)
99         @echo "*** Daimonin client successful installed in $(daimonindir)!"
100         @echo "*** Enter your install folder and type ./daimonin"
101         @echo "*** to start the game!"