mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 06:51:43 +00:00
17 lines
459 B
Makefile
17 lines
459 B
Makefile
SDL_CFLAGS = `sdl-config --cflags`
|
|
SDL_LIBS = `sdl-config --libs` -lSDL_net
|
|
OBJS= game.o player.o server.o ../config.o ../filesystem.o ../game_config.o ../log.o ../network.o
|
|
|
|
server: $(OBJS)
|
|
# gcc -lstdc++ ${SDL_CFLAGS} -o $@ ${OBJS} ${SDL_LIBS}
|
|
gcc -lstdc++ ${SDL_CFLAGS} -o wesnothd ${OBJS} ${SDL_LIBS}
|
|
|
|
wesnothd: $(OBJS)
|
|
gcc -lstdc++ ${SDL_CFLAGS} -o $@ ${OBJS} ${SDL_LIBS}
|
|
|
|
.cpp.o:
|
|
gcc ${SDL_CFLAGS} -c $< -o $*.o
|
|
|
|
clean:
|
|
-rm -f *.o ../*.o wesnothd
|