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 ; }
5 if $(NT) { WINDOZE = 1 ; }
7 set-default-locations ;
9 OPTIM.all += -Wno-narrowing ;
11 OPTIM = [ remove-std99-flags $(OPTIM) ] ;
12 C++OPTIM = [ remove-std99-flags $(C++OPTIM) ] ;
13 OPTIM.all += -static-libgcc -static-libstdc++ ;
14 LINKFLAGS.all += -static-libgcc -static-libstdc++ ;
17 HDRS += $(TOP)/src/felib ;
20 if $(USE_SOUND) = 0 || $(USE_SOUND) = "ona" || $(USE_SOUND) = "no" || $(USE_SOUND) = "n" {
28 Echo "MSG: windoze build" ;
32 HAVE_SDL = [ pkg-config sdl ] ;
34 Exit "FATAL: you need SDL!" ;
36 HAVE_MIXER = [ pkg-config SDL_mixer ] ;
40 HAVE_IMLIB2 = [ pkg-config imlib2 ] ;
41 #if $(FORCE_LIBPNG) || ! $(HAVE_IMLIB2) {
42 # HAVE_LIBPNG = [ lib-config-ex "pkg-config libpng --libs" ] ;
48 HAVE_ZLIB = [ pkg-config zlib ] ;
52 include $(TOP)/Jamrules.defines ;
53 softinclude $(TOP)/Jamrules.windoze ;
54 softinclude $(TOP)/Jamrules.push ;
62 C++Main "$(<)$(SUFEXE)" : $(>) ;
63 C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
64 LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
66 if $(USE_SOUND) { WINDOZE_SDL_MIXER = $(TOP)/SDL_mixer.dll ; } else { WINDOZE_SDL_MIXER = ; }
67 #C++LINKLIBS on "$(<)$(SUFEXE)" += -Lwinlib -lz ;
68 if $(HAVE_ZLIB) { WINDOZE_ZLIB = $(TOP)/zlib1.dll ; } else { WINDOZE_ZLIB = ; }
69 LinkSharedLibraries "$(<)$(SUFEXE)" :