X-Git-Url: http://royale.zerezo.com/git/?p=zeRace;a=blobdiff_plain;f=Makefile;h=a359dba2f4dc5dfb075ec444b2e9df681beaeb09;hp=d999c0b86d8178e1206d00aefedd901739762f89;hb=ee6ec6d95d78f74973a2ba97077cc94709bb6c61;hpb=866e35b81c26169886388f7c93dce52f2a42809f diff --git a/Makefile b/Makefile index d999c0b..a359dba 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) -ansi -Wall -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) -ansi -Wall -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) -ansi -Wall -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) -ansi -Wall -c sdl.c `$(SDLCONFIG) --cflags` + +car.o:car.c car.h sdl.h + $(CC) -ansi -Wall -c car.c `$(SDLCONFIG) --cflags` + +tracklist.o:tracklist.c tracklist.h + $(CC) -ansi -Wall -c tracklist.c + +bot.o:bot.c sdl.o car.o tracklist.o + $(CC) -ansi -Wall -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