Mercurial > hg > demos > krapula
view Makefile @ 67:e2415dd9b6b1
Improve build system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 21 Aug 2017 15:43:53 +0300 |
parents | 6ee701e2d8d9 |
children | f0b26daba6a9 |
line wrap: on
line source
# # Generic build target # include config.mak export DMLIB export BINPATH linux-bin: $(MAKE) -f $(DMLIB)Makefile EXEEXT=-linux.bin mingw-win32: $(MAKE) -f $(DMLIB)Makefile.cross-mingw \ OBJPATH=$(BPATH)/obj/win32/ \ MINGW_PREFIX=i686-w64-mingw32- \ MINGW_PATH=/usr/i686-w64-mingw32 mingw-win64: $(MAKE) -f $(DMLIB)Makefile.cross-mingw \ OBJPATH=$(BPATH)/obj/win64/ \ MINGW_PREFIX=x86_64-w64-mingw32- \ MINGW_PATH=/usr/x86_64-w64-mingw32 $(DATA): $(wildcard $(BPATH)/data/*) cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v * tools: @if test ! -e $(DMLIB)config.mak; then cp $(DMLIB)config.mak.in $(DMLIB)config.mak; fi @cd $(DMLIB) && make -j4 data: tools $(DATA) package: linux-bin mingw-win32 $(DATA) strip $(BINPATH)/*.bin $(BINPATH)/*.exe $(RM) $(PACKAGE) cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) * clean: -$(RM) $(DATA) -$(MAKE) -f $(DMLIB)Makefile clean EXEEXT=-linux.bin -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean