1 daimonindir=$(d_bindir)
2 daimonin_PROGRAMS = daimonin daimonin-updater
9 ../../src/chatfilter.c \
11 ../../src/commands.c \
15 ../../src/filewrap.c \
21 ../../src/inftrees.c \
22 ../../src/interface.c \
23 ../../src/inventory.c \
25 ../../src/kerbholz.c \
30 ../../src/physfsrwops.c \
32 ../../src/protocol.c \
37 ../../src/tile_stretcher.c \
42 daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@
43 daimonin_OBJDIR = objs
45 daimonin_updater_SOURCES = \
50 ../../src/inftrees.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@
69 # @if [ x$$UID = 'x0' -o x$$USER = 'xroot' ]; then \
71 # echo '*** ROOT INSTALL NOT SUPPORTED YET! Please install as a normal user.'; \
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!"