Skip to content
Snippets Groups Projects
Select Git revision
  • bc2e9a5faa09cacae31af59ecf9a8e4d5ed78aa2
  • main default protected
  • 3-add-makefile-with-structure
  • 9-add-destroy-function-4
  • 4-add-create-init-function
  • 5-add-push-function-2
  • 9-add-destroy-function-3
  • 9-add-destroy-function-2
  • v0.1
9 results

Makefile

Blame
  • Makefile 253 B
    CC:=gcc
    CFLAGS:= -g -Wextra -pedantic -fsanitize=address
    NAME:=stack
    
    $(NAME): main.o $(NAME).o
        $(CC) $(CFLAGS) -o $@ $^ -lSDL2
    
    tests: $(NAME)_tests.o $(NAME).o
        $(CC) $(CFLAGS) -o $@ $^
    
    $(NAME).o: $(NAME).h
    
    clean:
        rm -f *.o $(NAME) tests