shithub: choc

ref: 0d3b41b4a00e11b09583069b8f7f72a11400d737
dir: /setup/Makefile.am/

View raw version

gamesdir = $(prefix)/games

AM_CFLAGS = @SDL_CFLAGS@ -I../textscreen -I../src -DINSTALL_DIR="\"$(gamesdir)\""

games_PROGRAMS = chocolate-setup

chocolate_setup_LDADD = @LDFLAGS@ @SDL_LIBS@ ../textscreen/libtextscreen.a
SOURCE_FILES =                                  \
    compatibility.c   compatibility.h           \
    configfile.c      configfile.h              \
    display.c         display.h                 \
    keyboard.c        keyboard.h                \
    m_argv.c          m_argv.h                  \
    mainmenu.c                                  \
    mouse.c           mouse.h                   \
    multiplayer.c     multiplayer.h             \
    sound.c           sound.h                   \
    execute.c         execute.h                 \
    txt_keyinput.c    txt_keyinput.h            \
    txt_mouseinput.c  txt_mouseinput.h

EXTRA_DIST=                                     \
    chocolate_setup_icon.c

if HAVE_WINDRES
chocolate_setup_SOURCES=$(SOURCE_FILES) chocolate-setup-res.rc
else
chocolate_setup_SOURCES=$(SOURCE_FILES)
endif

.rc.o:
	$(WINDRES) $^ -o $@
%.o : %.rc
	$(WINDRES) $^ -o $@

chocolate_setup_icon.c : ../data/chocolate-setup.png
	../data/convert-icon $^ $@