comparison Makefile.gen @ 1432:a9516570cc26

Improve build, so that we can build the tools and tests with minimal depencies (e.g. without libSDL linking when possible.) And this also on Win32 MinGW.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 22 Nov 2017 01:33:21 +0200
parents ae1fcae5e622
children 8e1d86836efb
comparison
equal deleted inserted replaced
1431:ed04fb6da07c 1432:a9516570cc26
474 ### 474 ###
475 ### Tools 475 ### Tools
476 ### 476 ###
477 $(TOOL_BINPATH)fontconv$(EXEEXT): $(OBJPATH)fontconv.o $(DMLIB_A) 477 $(TOOL_BINPATH)fontconv$(EXEEXT): $(OBJPATH)fontconv.o $(DMLIB_A)
478 @echo " LINK $+" 478 @echo " LINK $+"
479 @$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(TOOL_LDFLAGS) $(SDL_TTF_LDFLAGS) $(ZLIB_LDFLAGS) -lm 479 @$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(TOOL_LDFLAGS) $(SDL_LDFLAGS) $(SDL_TTF_LDFLAGS) $(ZLIB_LDFLAGS) -lm
480 480
481 $(TOOL_BINPATH)data2inc$(EXEEXT): $(OBJPATH)data2inc.o $(DMLIB_A) 481 $(TOOL_BINPATH)data2inc$(EXEEXT): $(OBJPATH)data2inc.o $(DMLIB_A)
482 @echo " LINK $+" 482 @echo " LINK $+"
483 @$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(TOOL_LDFLAGS) 483 @$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(TOOL_LDFLAGS)
484 484