shithub: choc

ref: 21d67cd73010165b0da5bf0c10439db2fb4f882a
dir: /setup/Makefile.am/

View raw version

gamesdir = $(prefix)/games

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

games_PROGRAMS = chocolate-setup

SOURCE_FILES =                                  \
    compatibility.c   compatibility.h           \
    configfile.c      configfile.h              \
    display.c         display.h                 \
    joystick.c        joystick.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_joybinput.c   txt_joybinput.h           \
    txt_keyinput.c    txt_keyinput.h            \
    txt_mouseinput.c  txt_mouseinput.h

EXTRA_DIST=                                     \
    setup_icon.c                                \
    setup-manifest.xml

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

chocolate_setup_LDADD = ../textscreen/libtextscreen.a @LDFLAGS@

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

if HAVE_PYTHON

setup_icon.c : ../data/setup.ico
	../data/convert-icon $^ $@

endif