Mercurial > hg > demos > krapula
view Makefile @ 66:6ee701e2d8d9
Update compilation instructions and add new targets to build.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 21 Aug 2017 15:15:23 +0300 |
parents | 7daf69b39f34 |
children | e2415dd9b6b1 |
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): cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v * tools: cd $(DMLIB) && cp config.mak.in config.mak && 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