add structure for code refactoring (that will take place sometime in the future)

This commit is contained in:
randomuser 2021-11-24 23:42:00 -06:00
parent 1bdaf01f9c
commit 4d282ae608
3 changed files with 21 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
tls
tls.o
tls2
tls2.o

View File

@ -3,12 +3,20 @@ CFLAGS = -g
INCLUDE = -I /usr/local/include -L /usr/local/lib
LIBS = -lncurses -ltls
default: tls tls2
tls: tls.o
$(CC) -o tls tls.o $(LIBS) $(INCLUDE)
tls2: tls2.o
$(CC) -o tls2 tls2.o $(LIBS) $(INCLUDE)
deb:
gcc -ggdb -o tls tls.c $(LIBS) $(INCLUDE) -Wall -Wextra -fsanitize=address
gcc -ggdb -o tls2 tls2.c $(LIBS) $(INCLUDE) -Wall -Wextra -fsanitize=address
clean:
rm tls.o
rm tls
rm tls2.o
rm tls2

11
tls2.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <tls.h>
#include <ncurses.h>
int main(void) {
printf("hello world!\n");
return 0;
}