2015-08-09 16:56:52 +02:00
|
|
|
# Hyperrogue binairy rules
|
2015-08-09 15:38:09 +02:00
|
|
|
bin_PROGRAMS = hyperrogue
|
|
|
|
hyperroguedir = $(datadir)/hyperrogue
|
2017-04-12 16:16:59 +02:00
|
|
|
dist_hyperrogue_DATA = hyperrogue-music.txt DejaVuSans-Bold.ttf
|
2015-08-09 15:38:09 +02:00
|
|
|
dist_doc_DATA = README.md
|
2016-08-26 18:36:03 +02:00
|
|
|
hyperrogue_SOURCES = hyper.cpp savepng.c
|
2015-08-09 15:38:09 +02:00
|
|
|
|
2015-08-09 22:36:13 +02:00
|
|
|
# Some definitions used in graph.cpp
|
2017-06-26 22:17:40 +03:00
|
|
|
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\"
|
2017-07-24 15:11:28 -04:00
|
|
|
hyperrogue_CPPFLAGS += -std=c++11
|
2015-08-09 22:36:13 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-04-12 16:16:59 +02:00
|
|
|
# Soundsdir
|
|
|
|
soundsdir=$(datadir)/hyperrogue/sounds
|
|
|
|
dist_sounds_DATA = sounds/*
|
2015-09-12 12:16:00 +02:00
|
|
|
|
2015-08-09 16:56:52 +02:00
|
|
|
# Langen binary rules
|
2015-08-09 15:38:09 +02:00
|
|
|
noinst_PROGRAMS = langen
|
|
|
|
langen_SOURCES = langen.cpp
|
2016-01-02 18:44:54 +01:00
|
|
|
# Disable optimization, not needed
|
|
|
|
langen_CXXFLAGS = -O0
|
2015-08-09 16:56:52 +02:00
|
|
|
|
|
|
|
# Generation of language-data.cpp
|
2015-08-09 15:38:09 +02:00
|
|
|
language-data.cpp: langen
|
|
|
|
./langen > language-data.cpp
|
2015-08-09 16:56:52 +02:00
|
|
|
|
2016-08-26 18:36:03 +02:00
|
|
|
# Generation of savepng
|
|
|
|
#noinst_PROGRAMS += savepng
|
|
|
|
#savepng_SOURCES = savepng.c
|
|
|
|
|
2015-08-09 16:56:52 +02:00
|
|
|
# Local clean rules
|
|
|
|
clean-local:
|
|
|
|
rm -rf language-data.cpp
|
|
|
|
|
|
|
|
# First target made
|
|
|
|
BUILT_SOURCES = language-data.cpp graph.cpp
|
2015-08-09 15:38:09 +02:00
|
|
|
|
2015-08-22 13:43:16 +02:00
|
|
|
#############################
|
|
|
|
# Platform specific setup
|
|
|
|
#############################
|
|
|
|
windres_prefix=""
|
|
|
|
if MINGW
|
|
|
|
hyperrogue_SOURCES += hyper.res
|
|
|
|
hyperrogue_CPPFLAGS += ${wincppflags}
|
|
|
|
#hyperrogue_LDFLAGS = "-static-libgcc -static-libstdc++"
|
|
|
|
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
|