change makefile to include correct libs

This commit is contained in:
2025-08-15 00:37:55 -06:00
parent 37f5823c41
commit 2e6b481343
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
} }