Makefile should obey LDFLAGS from $ENV

This commit is contained in:
Björn Esser 2014-11-03 10:21:31 +01:00
parent 042e3fde77
commit dfcc1f5634

View File

@ -5,10 +5,10 @@ LIBS = -lcurses
all: 2048
2048: src/2048.c src/2048.h src/highscore_file.c
$(CC) $(CFLAGS) src/2048.c src/highscore_file.c -o 2048 $(LIBS)
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c src/highscore_file.c -o 2048
2048nc: src/2048_no_curses.c src/2048.h src/highscore_file.c
$(CC) $(CFLAGS) src/2048_no_curses.c src/highscore_file.c -o 2048nc
$(CC) $(CFLAGS) $(LDFLAGS) src/2048_no_curses.c src/highscore_file.c -o 2048nc
clean:
rm -f 2048 2048nc