1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-21 08:00:25 +00:00
hyperrogue/Makefile.am

47 lines
1.5 KiB
Makefile
Raw Normal View History

2015-08-09 13:38:09 +00:00
bin_PROGRAMS = hyperrogue
hyperroguedir = $(datadir)/hyperrogue
hyperrogue_SOURCES = hyper.cpp savepng.cpp
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\"
hyperrogue_CXXFLAGS = -O2 -std=c++11 ${AM_CXXFLAGS}
dist_hyperrogue_DATA = hyperrogue-music.txt DejaVuSans-Bold.ttf
# docdir
dist_doc_DATA = README.md
# musicdir
musicdir=$(datadir)/hyperrogue/music
dist_music_DATA = music/hr3-caves.ogg music/hr3-desert.ogg music/hr3-hell.ogg music/hr3-jungle.ogg music/hr3-mirror.ogg music/hr3-rlyeh.ogg music/hr3-crossroads.ogg music/hr3-graveyard.ogg music/hr3-icyland.ogg music/hr3-laboratory.ogg music/hr3-motion.ogg
# soundsdir
2017-04-12 14:16:59 +00:00
soundsdir=$(datadir)/hyperrogue/sounds
dist_sounds_DATA = sounds/*
2015-09-12 10:16:00 +00:00
2015-08-09 13:38:09 +00:00
noinst_PROGRAMS = langen
langen_SOURCES = langen.cpp
langen_CXXFLAGS = -O0 -std=c++11 ${AM_CXXFLAGS}
BUILT_SOURCES = language-data.cpp
2015-08-09 14:56:52 +00:00
2015-08-09 13:38:09 +00:00
language-data.cpp: langen
./langen > language-data.cpp
2015-08-09 14:56:52 +00:00
2015-08-22 11:43:16 +00:00
#############################
# Platform specific setup
#############################
if MAC
hyperrogue_LDFLAGS = -lSDLmain -framework AppKit -framework OpenGL
endif MAC
if MINGW
nodist_hyperrogue_SOURCES = hyper.res
hyperrogue_CPPFLAGS += -march=native -DWINDOWS
windres_prefix = ${host_cpu}-w64-mingw32-
2015-08-22 11:43:16 +00:00
endif MINGW
#############################
# Arch specific setup
#############################
2015-08-22 11:43:16 +00:00
hyper.res: hyper.rc hr-icon.ico
${windres_prefix}windres hyper.rc -O coff -o hyper.res