Ticket #41912: patch-Makefile.diff

File patch-Makefile.diff, 604 bytes (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Makefile

    old new  
    22
    33#default paths
    44BIN_PREFIX=/usr/bin/
    5 DATA_PREFIX=/var/games/
     5DATA_PREFIX=$(PREFIX)/var/games/bastet/
    66HISCORE=bastet.scores
    77
    88#in order to handle highscores properly, bastet must be setuid.
     
    1111GAME_USER=games
    1212
    1313CC=gcc
    14 CFLAGS=-Wall -DHIGHSCORE_FILE=\"$(DATA_PREFIX)$(HISCORE)\"
    15 LDFLAGS=-lncurses
     14CFLAGS=-std=gnu89 -Wall -DHIGHSCORE_FILE=\"$(DATA_PREFIX)$(HISCORE)\"
     15LDFLAGS=-L$(PREFIX)/lib -lncurses
    1616SOURCES=main.c game.c highscore.c bast.c
    1717EXNAME=bastet
    1818