mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
a2de831122
CPPFLAGS are applied to both .cpp and .c files, and that breaks clang build: error: invalid argument '-std=c++11' not allowed with 'C/ObjC'
58 lines
1.7 KiB
Makefile
58 lines
1.7 KiB
Makefile
# Hyperrogue binairy rules
|
|
bin_PROGRAMS = hyperrogue
|
|
hyperroguedir = $(datadir)/hyperrogue
|
|
dist_hyperrogue_DATA = hyperrogue-music.txt DejaVuSans-Bold.ttf
|
|
dist_doc_DATA = README.md
|
|
hyperrogue_SOURCES = hyper.cpp savepng.c
|
|
|
|
# Some definitions used in graph.cpp
|
|
hyperrogue_CPPFLAGS = -DFONTDESTDIR=\"$(pkgdatadir)/DejaVuSans-Bold.ttf\" -DMUSICDESTDIR=\"$(pkgdatadir)/hyperrogue-music.txt\" -DSOUNDDESTDIR=\"$(pkgdatadir)/sounds/\"
|
|
hyperrogue_CXXFLAGS = -std=c++11
|
|
|
|
# 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/*
|
|
|
|
# Langen binary rules
|
|
noinst_PROGRAMS = langen
|
|
langen_SOURCES = langen.cpp
|
|
# Disable optimization, not needed
|
|
langen_CXXFLAGS = -O0
|
|
|
|
# Generation of language-data.cpp
|
|
language-data.cpp: langen
|
|
./langen > language-data.cpp
|
|
|
|
# Generation of savepng
|
|
#noinst_PROGRAMS += savepng
|
|
#savepng_SOURCES = savepng.c
|
|
|
|
# Local clean rules
|
|
clean-local:
|
|
rm -rf language-data.cpp
|
|
|
|
# First target made
|
|
BUILT_SOURCES = language-data.cpp graph.cpp
|
|
|
|
#############################
|
|
# 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
|