X-Git-Url: http://royale.zerezo.com/git/?p=zeRace;a=blobdiff_plain;f=Makefile;h=b899460b7965a7876413c8dcefe584f9cad5006c;hp=d999c0b86d8178e1206d00aefedd901739762f89;hb=a649266e00696290ecf09f15c9dfa09f1cd35244;hpb=866e35b81c26169886388f7c93dce52f2a42809f diff --git a/Makefile b/Makefile index d999c0b..b899460 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,31 @@ -zeRace:zeRace.c sdl.o - gcc -ansi -Wall -o zeRace zeRace.c sdl.o `sdl-config --cflags --libs` -lSDL_image -lSDL_gfx -lSDL_net -lSDL_mixer +CC=gcc +SDLCONFIG=sdl-config + +all:zeRace server bot_anticip + +zeRace:zeRace.c network.h sdl.o car.o tracklist.o $(ICON) + $(CC) -o zeRace$(EXT) zeRace.c sdl.o car.o tracklist.o $(ICON) `$(SDLCONFIG) --cflags --libs` -lSDL_net -lSDL_mixer -lSDL_image -lSDL_gfx -L. + +server:server.c network.h sdl.o car.o tracklist.o + $(CC) -o server$(EXT) server.c sdl.o car.o tracklist.o `$(SDLCONFIG) --cflags --libs` -lSDL_net -lSDL_image -L. + +bot_anticip:bot_anticip.c bot.o sdl.o car.o tracklist.o + $(CC) -o bot_anticip$(EXT) bot_anticip.c bot.o sdl.o car.o tracklist.o `$(SDLCONFIG) --cflags --libs` -lSDL_net -lSDL_image -L. sdl.o:sdl.c sdl.h - gcc -ansi -Wall -c sdl.c `sdl-config --cflags` + $(CC) -c sdl.c `$(SDLCONFIG) --cflags` + +car.o:car.c car.h sdl.h + $(CC) -c car.c `$(SDLCONFIG) --cflags` + +tracklist.o:tracklist.c tracklist.h + $(CC) -c tracklist.c + +bot.o:bot.c sdl.o car.o tracklist.o + $(CC) -c bot.c `$(SDLCONFIG) --cflags` + +icon.o:icon.rc + $(WINDRES) -i icon.rc -o icon.o clean: - rm -f zeRace *.o *.cfg + rm -f zeRace server bot_anticip *.exe *.o *.cfg