1 if ! $(THIS_IS_K8JAM) {
2 Exit "You need k8jam to build Awish! Download it here: http://repo.or.cz/w/k8jam.git" ;
4 if $(WINDOZE) { OPT = default ; OPTIM_STANDARD = -O2 -march=i686 -mtune=i686 ; }
6 set-default-locations ;
7 if ! $(WINDOZE) { OPTIM.all += -Wno-narrowing ; }
9 HDRS += $(TOP)/src/felib ;
12 if $(USE_SOUND) = 0 || $(USE_SOUND) = "ona" || $(USE_SOUND) = "no" || $(USE_SOUND) = "n" {
20 Echo "MSG: windoze build" ;
24 HAVE_SDL = [ pkg-config sdl ] ;
26 Exit "FATAL: you need SDL!" ;
28 HAVE_MIXER = [ pkg-config SDL_mixer ] ;
32 HAVE_IMLIB2 = [ pkg-config imlib2 ] ;
33 #if $(FORCE_LIBPNG) || ! $(HAVE_IMLIB2) {
34 # HAVE_LIBPNG = [ lib-config-ex "pkg-config libpng --libs" ] ;
40 HAVE_ZLIB = [ pkg-config zlib ] ;
44 include $(TOP)/Jamrules.defines ;
45 softinclude $(TOP)/Jamrules.windoze ;
46 softinclude $(TOP)/Jamrules.push ;
54 C++Main "$(<)$(SUFEXE)" : $(>) ;
55 C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
56 LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
58 if $(USE_SOUND) { WINDOZE_SDL_MIXER = $(TOP)/windoze/libs/SDL_mixer.dll ; } else { WINDOZE_SDL_MIXER = ; }
59 #C++LINKLIBS on "$(<)$(SUFEXE)" += -Lwinlib -lz ;
60 if $(HAVE_ZLIB) { WINDOZE_ZLIB = $(TOP)/windoze/libs/zlib1.dll ; } else { WINDOZE_ZLIB = ; }
61 LinkSharedLibraries "$(<)$(SUFEXE)" :
62 $(TOP)/windoze/libs/SDL.dll