Skip to content
Snippets Groups Projects
Commit f4024bb2 authored by abivarma.kandiah's avatar abivarma.kandiah
Browse files

Create the files of the repo

parents
Branches
No related tags found
No related merge requests found
build/*
!build/.gitkeep
\ No newline at end of file
Makefile 0 → 100644
CC = gcc
FLAGS = -Wextra -Wall -fsanitize=address -g
LIB = -lm
TEST = build/test
SRC = src/
BUILD = build/
#Compile tous
all : $(TEST)
#Executables
$(TEST) : $(BUILD)/test_vectors.o $(BUILD)/vectors.o
$(CC) $^ -o $@ $(FLAGS) $(LIB)
#Fichiers objets
$(BUILD)/test_vectors.o : $(SRC)/test_vectors.c $(SRC)/vectors.c
$(CC) -c $< $(FLAGS) $(LIB) -o $@
$(BUILD)/vectors.o : $(SRC)/vectors.c
$(CC) -c $^ $(FLAGS) $(LIB) -o $@
#Lancement d'executable
test : $(TEST)
./$^
#Nettoyages des objets et executables
clean : $(TEST) $(BUILD)/test_vectors.o $(BUILD)/vectors.o
rm $^
/*
Autheur : Abivarman KANDIAH
Date : 11/01/2022
Fichier : vectors.h
Descritpion : Vectors functions header
*/
#ifndef _VECTORS_H_
#define _VECTORS_H_
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#endif
\ No newline at end of file
/*
Autheur : Abivarman KANDIAH
Date : 22/02/2022
Fichier : test_vectors.c
Descritpion :
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "../header/vectors.h"
int main()
{
return 0;
}
\ No newline at end of file
/*
Autheur : Abivarman KANDIAH
Date : 22/02/2022
Fichier : vectors.c
Descritpion :
*/
#include "../header/vectors.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment