change makefile to include correct libs
This commit is contained in:
@@ -3,7 +3,7 @@ CFLAGS = -g
|
|||||||
CPPFLAGS = -Wall -Wextra -pedantic -std=gnu99
|
CPPFLAGS = -Wall -Wextra -pedantic -std=gnu99
|
||||||
|
|
||||||
chatty: main.o liblist.a
|
chatty: main.o liblist.a
|
||||||
$(CC) $(CFLAGS) -L. -o chatty main.o -llist -lpthread -lncurses -lnotcurses
|
$(CC) $(CFLAGS) -L. -o chatty main.o -llist -lpthread -lnotcurses -lnotcurses-core
|
||||||
|
|
||||||
main.o: main.c
|
main.o: main.c
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -I. -c -o main.o main.c
|
$(CC) $(CFLAGS) $(CPPFLAGS) -I. -c -o main.o main.c
|
||||||
|
|||||||
@@ -321,10 +321,10 @@ int main(int argc, char* argv[]) {
|
|||||||
pthread_mutex_destroy(&sendmut);
|
pthread_mutex_destroy(&sendmut);
|
||||||
pthread_mutex_destroy(&receivemut);
|
pthread_mutex_destroy(&receivemut);
|
||||||
|
|
||||||
notcurses_stop(nc);
|
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
close(confd);
|
close(confd);
|
||||||
printf("Connection closed.\n");
|
printf("Connection closed.\n");
|
||||||
|
notcurses_stop(nc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user