actually require ncurses
This commit is contained in:
parent
12e08849fd
commit
9f82b10b5c
4
Makefile
4
Makefile
@ -5,7 +5,7 @@ SRC=src
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wextra -Wall
|
CFLAGS = -Wextra -Wall
|
||||||
LDLIBS = -lncurses
|
LDLIBS = -lncurses
|
||||||
NCURSES_H=/usr/include/ncurses.h
|
NCURSES_H = /usr/include/ncurses.h
|
||||||
|
|
||||||
all: nms sneakers
|
all: nms sneakers
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ nms: $(OBJ)/nms.o $(OBJ)/main.o | $(BIN)
|
|||||||
sneakers: $(OBJ)/nms.o $(OBJ)/sneakers.o | $(BIN)
|
sneakers: $(OBJ)/nms.o $(OBJ)/sneakers.o | $(BIN)
|
||||||
$(CC) $(CFLAGS) -o $(BIN)/$@ $^ $(LDLIBS)
|
$(CC) $(CFLAGS) -o $(BIN)/$@ $^ $(LDLIBS)
|
||||||
|
|
||||||
$(OBJ)/%.o: $(SRC)/%.c | $(OBJ)
|
$(OBJ)/%.o: $(SRC)/%.c | $(OBJ) $(NCURSES_H)
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
$(BIN):
|
$(BIN):
|
||||||
|
Loading…
Reference in New Issue
Block a user