1AM_CXXFLAGS = -Wall -DTOP_DATADIR=\"$(pkgdatadir)\" -DHISCOREDIR=\"$(pkglocalstatedir)\" -DLOCALEDIR=\"$(localedir)\" 2SUBDIRS = po m4 3ACLOCAL_AMFLAGS = -I m4 4 5PACKAGE = toppler 6 7bin_PROGRAMS = toppler 8 9toppler_LDFLAGS = $(LIBINTL) 10toppler_SOURCES = \ 11 archi.cc archi.h \ 12 bonus.cc bonus.h \ 13 configuration.cc configuration.h \ 14 decl.cc decl.h \ 15 elevators.cc elevators.h \ 16 game.cc game.h \ 17 highscore.cc highscore.h \ 18 keyb.cc keyb.h \ 19 level.cc level.h \ 20 leveledit.cc leveledit.h \ 21 menu.cc menu.h \ 22 menusys.cc menusys.h \ 23 main.cc \ 24 points.cc points.h \ 25 robots.cc robots.h \ 26 screen.cc screen.h \ 27 snowball.cc snowball.h \ 28 sound.cc sound.h \ 29 soundsys.cc soundsys.h \ 30 sprites.cc sprites.h \ 31 stars.cc stars.h \ 32 toppler.cc toppler.h \ 33 txtsys.cc txtsys.h \ 34 qnxicon.c 35 36docdir = $(datadir)/doc 37pixmapsdir = $(datadir)/pixmaps 38applicationsdir = $(datadir)/applications 39pkgdocdir = $(docdir)/$(PACKAGE) 40pkglocalstatedir = $(localstatedir)/$(PACKAGE) 41 42dist_pixmaps_DATA = $(PACKAGE).xpm 43applications_DATA = $(PACKAGE).desktop 44dist_man_MANS = toppler.6 45dist_pkgdoc_DATA = AUTHORS COPYING ChangeLog NEWS README 46dist_pkgdata_DATA = \ 47 toppler.dat toppler.ogg 48 49dist_pkglocalstate_DATA = $(PACKAGE).hsc 50 51EXTRA_DIST = \ 52 config.rpath mkinstalldirs \ 53 $(PACKAGE).spec \ 54 VERSION levelnames.txt \ 55 toppler.qpg 56 57install-exec-hook: 58 -chgrp games $(DESTDIR)$(bindir)/toppler 59 -chmod 2755 $(DESTDIR)$(bindir)/toppler 60 61install-data-hook: 62 -chgrp games $(DESTDIR)$(pkglocalstatedir)/$(PACKAGE).hsc 63 -chmod 0664 $(DESTDIR)$(pkglocalstatedir)/$(PACKAGE).hsc 64 65abs_builddir = @abs_builddir@ 66win32dir = $(PACKAGE)-$(VERSION)-win32 67 68dist-win32: $(PACKAGE).exe 69 $(RM) -r $(win32dir) 70 $(INSTALL) -d $(win32dir) 71 $(INSTALL) -m755 .libs/$(PACKAGE).exe $(win32dir)/ 72 $(STRIP) $(win32dir)/$(PACKAGE).exe 73 upx --lzma $(win32dir)/$(PACKAGE).exe 74 cd $(srcdir) && $(INSTALL) -m644 \ 75 $(dist_pkgdata_DATA) $(dist_pkglocalstate_DATA) \ 76 $(abs_builddir)/$(win32dir)/ 77 cd $(srcdir) && for FILE in $(dist_pkgdoc_DATA); do \ 78 sed 's,$$,\r,' < $$FILE > $(abs_builddir)/$(win32dir)/$$FILE.txt; \ 79 done 80 xpmtoppm --alphaout=$(PACKAGE)-alpha.pbm $(srcdir)/$(PACKAGE).xpm > $(PACKAGE).ppm 81 ppmtowinicon -andpgms $(PACKAGE).ppm $(PACKAGE)-alpha.pbm > $(win32dir)/$(PACKAGE).ico 82 $(RM) $(PACKAGE).ppm $(PACKAGE)-alpha.pbm 83 $(MAKE) -C po install localedir=$(abs_builddir)/$(win32dir)/locale 84 $(RM) $(win32dir).zip 85 zip -r9 $(win32dir).zip $(win32dir) 86 $(RM) -r $(win32dir) 87