Skip to content
Snippets Groups Projects
Commit 39c515f8 authored by tom.ryser's avatar tom.ryser :carousel_horse:
Browse files

Update Makefile.

removed LDFLAGS:=-lm

removed -g -O3 in CFLAGS
parent 071e3098
No related branches found
No related tags found
1 merge request!3Resolve "add makefile with structure"
CC:=gcc
CFLAGS:=-g -O3 -Wextra -pedantic -fsanitize=address
LDFLAGS:=-lm
CFLAGS:= -Wextra -pedantic -fsanitize=address
NAME:=stack
$(NAME): main.o $(NAME).o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lSDL2
$(CC) $(CFLAGS) -o $@ $^ -lSDL2
tests: $(NAME)_tests.o $(NAME).o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(CC) $(CFLAGS) -o $@ $^
$(NAME).o: $(NAME).h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment