code restructuring; asm code now can draw sprites on title screen
[awish.git] / Jamrules
blob022fda358aa5f92f5e0a00d00c9294ba8224e41a
1 if ! $(THIS_IS_K8JAM) {
2   Exit "You need k8jam to build Awish! Download it here: http://repo.or.cz/w/k8jam.git" ;
4 set-profile ;
5 set-target-locations ;
7 HDRS += $(TOP)/src ;
10 if $(WITH_TITLE) { DEFINES += WITH_TITLE ; }
11 if $(NOSOUND) || $(NO_SOUND) {
12   DEFINES += AWISH_NO_SOUND ;
13   NOSOUND = tan ;
14 } else {
15   NOSOUND = ;
19 if ! $(WINDOZE) {
20   pkg-config "sdl" ;
21   if ! $(NOSOUND) {
22     pkg-config "SDL_mixer" ;
23   }
24   #pkg-config "SDL_ttf" ;
25   #LINKLIBS.all += -lz -lm ;
26 } else {
27   HDRS += $(TOP)/windoze/include/SDL ;
28   #LINKFLAGS.all += -L$(TOP)/windoze/libs ;
29   #WINDOZE_THREADS = ;
30   WINSUBSYS = "windows" ;
31   #WINLIBS += -lkernel32 ;
32   windoze-fix ;
36 rule SDLMain {
37   local n ;
39   for n in $(<) {
40     #echo "$(n:S)" ;
41     Main "$(<)$(SUFEXE)" : $(>) ;
42     #LinkLibraries "$(<)$(SUFEXE)" : libcruel.a $(LIBFLARE_A) ;
43     if $(WINDOZE) {
44       if ! $(NOSOUND) { WINDOZE_SDL_MIXER = $(TOP)/windoze/libs/SDL_mixer.dll ; } else { WINDOZE_SDL_MIXER = ; }
45       LinkSharedLibraries "$(<)$(SUFEXE)" :
46         $(TOP)/windoze/libs/SDL.dll
47         $(WINDOZE_SDL_MIXER)
48       ;
49     }
50   }
54 actions quietly AShowHelp {
55   echo "usage: jam [target] [flags]"
56   echo "tagets:"
57   echo "  jam                 -- build project"
58   echo "  jam all             -- build project"
59   echo "  jam clean           -- do cleanup"
60   echo "  jam help            -- show this help"
61   echo "  jam -a NOSOUND=1    -- disable sound"
62   echo "  jam -a WITH_TITLE=1 -- enable title screen in debug mode"
66 if ([ FileExists $(TOP)/Jamrules.push ]) {
67   include $(TOP)/Jamrules.push ;