File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ CFLAGS?= -O2 -finline-functions -funswitch-loops -fgcse-after-reload -fpredictiv
66CFLAGS+ = ` sdl2-config --cflags ` -DDATADIR="\"$(PREFIX ) /share/abbayev2\""
77LIBS = ` sdl2-config --libs ` -lSDL2_image -lSDL2_mixer -lm
88
9+ PROG = abbayev2
910SRCS = src/drawing.c \
1011 src/ending.c \
1112 src/enemies.c \
@@ -17,17 +18,17 @@ SRCS= src/drawing.c \
1718 src/main.c \
1819 src/startscreen.c
1920
20- all : abbaye
21+ all : $( PROG )
2122
22- abbaye : ./src/main.c ./src/loading.c ./src/startscreen.c ./src/history.c ./src/game.c ./src/jean.c ./src/enemies.c ./src/gameover.c ./src/ending.c ./src/drawing.c
23- $(CC ) $(CFLAGS ) $(SRCS ) -o abbayev2 $(LIBS )
23+ $( PROG ) : ./src/main.c ./src/loading.c ./src/startscreen.c ./src/history.c ./src/game.c ./src/jean.c ./src/enemies.c ./src/gameover.c ./src/ending.c ./src/drawing.c
24+ $(CC ) $(CFLAGS ) $(SRCS ) -o $( PROG ) $(LIBS )
2425
2526clean :
2627
2728 rm -rf ./abbayev2
2829
2930# Installation
30- install :
31+ install : $( PROG )
3132 cp abbayev2 $(DESTDIR )$(PREFIX ) /bin/
3233 cp abbaye.desktop $(DESTDIR )$(PREFIX ) /share/applications
3334 mkdir -p $(DESTDIR )$(PREFIX ) /share/abbayev2/sounds
You can’t perform that action at this time.
0 commit comments