Skip to content
Snippets Groups Projects
Commit 0f23eb63 authored by root's avatar root
Browse files

init

parents
No related branches found
No related tags found
No related merge requests found
*.o
**/main
\ No newline at end of file
#The compiler
CC:=gcc
TARGET:=main
#The flags passed to the compiler
CFLAGS:=-g -O0 -Wall -Wextra -std=gnu11 -I. -fsanitize=address -fsanitize=leak
#The flags passed to the linker
LDFLAGS:=-lm
#Path to the lib queue
#LINKS = queue.o dll.o
$(TARGET): $(TARGET).o $(LINKS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.h
clean:
rm -f *.o main tests
\ No newline at end of file
#include <stdio.h>
#include <stdlib.h>
int main(){
return 0;
}
\ No newline at end of file
#The compiler
CC:=gcc
TARGET:=main
#The flags passed to the compiler
CFLAGS:=-g -O0 -Wall -Wextra -std=gnu11 -I. -fsanitize=address -fsanitize=leak
#The flags passed to the linker
LDFLAGS:=-lm
#Path to the lib queue
#LINKS = queue.o dll.o
$(TARGET): $(TARGET).o $(LINKS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.h
clean:
rm -f *.o main tests
\ No newline at end of file
#include <stdio.h>
#include <stdlib.h>
int main(){
return 0;
}
\ No newline at end of file
#The compiler
CC:=gcc
TARGET:=main
#The flags passed to the compiler
CFLAGS:=-g -O0 -Wall -Wextra -std=gnu11 -I. -fsanitize=address -fsanitize=leak
#The flags passed to the linker
LDFLAGS:=-lm
#Path to the lib queue
#LINKS = queue.o dll.o
$(TARGET): $(TARGET).o $(LINKS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.h
clean:
rm -f *.o main tests
\ No newline at end of file
#include <stdio.h>
#include <stdlib.h>
int main(){
return 0;
}
\ No newline at end of file
#The compiler
CC:=gcc
TARGET:=main
#The flags passed to the compiler
CFLAGS:=-g -O0 -Wall -Wextra -std=gnu11 -I. -fsanitize=address -fsanitize=leak
#The flags passed to the linker
LDFLAGS:=-lm
#Path to the lib queue
#LINKS = queue.o dll.o
$(TARGET): $(TARGET).o $(LINKS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.h
clean:
rm -f *.o main tests
\ No newline at end of file
#include <stdio.h>
#include <stdlib.h>
int main(){
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment