1 ALLFILES
= ext_sdl.c bl
*.
[ch
] version.h
*.e Makefile LICENSE README HISTORY
*.config
*.se cross.ed
4 CC
= i586-mingw32msvc-gcc
5 EFLAGS
=-boost
-O2
-I
/home
/ben
/cross
/SDL
/include/SDL
6 CFLAGS
=-O2
-Wall
-I
/home
/ben
/cross
/SDL
/include/SDL
7 SDL_LIBS
=-L
/home
/ben
/cross
/SDL
/lib
-lSDL
8 LIBS
= $(SDL_LIBS
) -lSDL_ttf
11 CFLAGS
=-O2
-Wall
`sdl-config --cflags`
12 EFLAGS
=-boost
-O2
`sdl-config --cflags`
13 SDL_LIBS
=`sdl-config --libs`
14 LIBS
= $(SDL_LIBS
) -lSDL_ttf
21 netwalk
: *.e ext_sdl.c bl_lib.o
23 compile_to_c
-cecil cecil.se
-o
$@.exe netwalk
$(EFLAGS
) ext_sdl.c bl_lib.o
$(LIBS
)
24 ed
-s netwalk.make
< cross.ed
27 compile
-cecil cecil.se
$(EFLAGS
) -o
$@ netwalk ext_sdl.c bl_lib.o
$(LIBS
)
34 projname
:= $(shell awk
'/NETWALK_VERSION/ { print $$3 }' version.h
)
39 cp
-rl
--parents
$(ALLFILES
) $(projname
)
40 tar chfz
$(projname
).tgz
$(projname
)
47 cp
-l netwalk.exe
$(projname
)
48 cp
-l linux.config
$(projname
)/config
49 cp
-l
/home
/ben
/cross
/SDL
/lib
/SDL.dll
$(projname
)
50 cp
-l
/home
/ben
/cross
/SDL
/lib
/SDL_ttf.dll
$(projname
)
51 zip
$(projname
)-win.zip
$(projname
)/*