2015-08-09 13:38:09 +00:00
|
|
|
bin_PROGRAMS = hyperrogue
|
|
|
|
hyperroguedir = $(datadir)/hyperrogue
|
2018-06-25 15:13:30 +00:00
|
|
|
hyperrogue_SOURCES = hyper.cpp savepng.cpp
|
2020-05-15 23:30:33 +00:00
|
|
|
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\" -DRESOURCEDESTDIR=\"$(pkgdatadir)/\"
|
2018-07-01 00:56:53 +00:00
|
|
|
hyperrogue_CXXFLAGS = -O2 -std=c++11 ${AM_CXXFLAGS}
|
2020-05-15 23:30:33 +00:00
|
|
|
dist_hyperrogue_DATA = hyperrogue-music.txt DejaVuSans-Bold.ttf solv-geodesics.dat shyp-geodesics.dat ssol-geodesics.dat honeycomb-435.dat honeycomb-534.dat honeycomb-535.dat
|
2018-07-01 00:56:53 +00:00
|
|
|
|
|
|
|
# docdir
|
|
|
|
dist_doc_DATA = README.md
|
2015-08-09 20:36:13 +00:00
|
|
|
|
2018-07-01 00:56:53 +00:00
|
|
|
# musicdir
|
2015-08-09 20:36:13 +00:00
|
|
|
musicdir=$(datadir)/hyperrogue/music
|
2019-10-03 18:08:07 +00:00
|
|
|
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 music/hr-savino-palace.ogg music/hr-savino-caribbean.ogg music/hr-savino-ocean.ogg music/hr-savino-ivory.ogg
|
2015-08-09 20:36:13 +00:00
|
|
|
|
2018-07-01 00:56:53 +00:00
|
|
|
# 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
|
|
|
|
2019-09-13 16:20:50 +00:00
|
|
|
noinst_PROGRAMS = langen makeh
|
2019-09-13 16:56:54 +00:00
|
|
|
langen_SOURCES = langen.cpp
|
2018-07-01 00:56:53 +00:00
|
|
|
langen_CXXFLAGS = -O0 -std=c++11 ${AM_CXXFLAGS}
|
2019-09-13 16:56:54 +00:00
|
|
|
makeh_SOURCES = makeh.cpp
|
|
|
|
BUILT_SOURCES = language-data.cpp autohdr.h
|
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
|
|
|
|
2019-10-03 15:34:27 +00:00
|
|
|
autohdr.h: makeh language-data.cpp *.cpp
|
2019-12-26 21:40:41 +00:00
|
|
|
./makeh classes.cpp locations.cpp hyperpoint.cpp geometry.cpp goldberg.cpp init.cpp floorshapes.cpp cell.cpp multi.cpp shmup.cpp pattern2.cpp mapeditor.cpp graph.cpp textures.cpp hprint.cpp language.cpp util.cpp complex.cpp *.cpp > autohdr.h
|
2019-09-13 16:20:50 +00:00
|
|
|
|
2015-08-22 11:43:16 +00:00
|
|
|
#############################
|
|
|
|
# Platform specific setup
|
|
|
|
#############################
|
|
|
|
|
2018-07-01 00:56:53 +00:00
|
|
|
if MAC
|
|
|
|
hyperrogue_LDFLAGS = -lSDLmain -framework AppKit -framework OpenGL
|
|
|
|
endif MAC
|
|
|
|
|
|
|
|
if MINGW
|
|
|
|
nodist_hyperrogue_SOURCES = hyper.res
|
2018-09-05 13:30:18 +00:00
|
|
|
hyperrogue_CPPFLAGS += -march=native -DWINDOWS
|
2018-07-01 00:56:53 +00:00
|
|
|
windres_prefix = ${host_cpu}-w64-mingw32-
|
2015-08-22 11:43:16 +00:00
|
|
|
endif MINGW
|
|
|
|
|
|
|
|
#############################
|
|
|
|
# Arch specific setup
|
|
|
|
#############################
|
2018-07-01 00:56:53 +00:00
|
|
|
|
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
|