nostalgia/build/Makefile

38 lines
736 B
Makefile
Raw Normal View History

2016-12-24 13:06:44 -06:00
all: gba_build gba_debug_build native_build native_debug_build windows_release windows_debug
2016-12-23 17:29:19 -06:00
2017-05-18 16:39:33 -05:00
ifneq ($(shell which gmake),)
MAKE="gmake -j"
else
MAKE="make -j"
endif
2016-03-26 15:49:05 -05:00
gba_build:
2016-12-23 17:29:19 -06:00
@if [ -d gba-release ]; then \
${MAKE} -C gba-release ${ARGS}; \
fi
2016-12-24 13:06:44 -06:00
gba_debug_build:
@if [ -d gba-debug ]; then \
${MAKE} -C gba-debug ${ARGS}; \
fi
2016-12-23 17:29:19 -06:00
native_build:
2016-12-23 18:06:27 -06:00
@if [ -d ${HOST_ENV}-release ]; then \
${MAKE} -C ${HOST_ENV}-release ${ARGS}; \
2016-12-23 17:29:19 -06:00
fi
native_debug_build:
2016-12-23 18:06:27 -06:00
@if [ -d ${HOST_ENV}-debug ]; then \
${MAKE} -C ${HOST_ENV}-debug ${ARGS}; \
2016-03-26 15:49:05 -05:00
fi
2016-12-23 17:29:19 -06:00
windows_release:
@if [ -d windows-release ]; then \
${MAKE} -C windows-release ${ARGS}; \
2016-03-26 15:49:05 -05:00
fi
2016-12-23 17:29:19 -06:00
windows_debug:
@if [ -d windows-debug ]; then \
${MAKE} -C windows-debug ${ARGS}; \
2016-03-26 15:49:05 -05:00
fi