mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
0946300663
It still seems to work on MinGW mainly by accident, but at least it's a lot shorter and clearer and more portable at this point. We can start testing it in TravisCI and then work on making it work "less by accident" incrementally.
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
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
|
|
soundsdir=$(datadir)/hyperrogue/sounds
|
|
dist_sounds_DATA = sounds/*
|
|
|
|
noinst_PROGRAMS = langen
|
|
langen_SOURCES = langen.cpp
|
|
langen_CXXFLAGS = -O0 -std=c++11 ${AM_CXXFLAGS}
|
|
BUILT_SOURCES = language-data.cpp
|
|
|
|
language-data.cpp: langen
|
|
./langen > language-data.cpp
|
|
|
|
#############################
|
|
# Platform specific setup
|
|
#############################
|
|
|
|
if MAC
|
|
hyperrogue_LDFLAGS = -lSDLmain -framework AppKit -framework OpenGL
|
|
endif MAC
|
|
|
|
if MINGW
|
|
nodist_hyperrogue_SOURCES = hyper.res
|
|
windres_prefix = ${host_cpu}-w64-mingw32-
|
|
endif MINGW
|
|
|
|
#############################
|
|
# Arch specific setup
|
|
#############################
|
|
|
|
hyper.res: hyper.rc hr-icon.ico
|
|
${windres_prefix}windres hyper.rc -O coff -o hyper.res
|