Skip to content
Snippets Groups Projects
Select Git revision
  • 5009ae159ba95bec56f131f7f2450779b06bd768
  • master default protected
2 results

mainwindow.cpp

  • makefile 335 B
    LIB=-lm
    CC=gcc -Wall -Wextra -g
    
    matrix: matrix.o main.o
    	$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
    
    run_tests: tests
    	./$<
    
    tests: test.o matrix.o
    	$(CC) $^ -fsanitize=address -fsanitize=leak -o $@ $(LIB)
    
    matrix.o: matrix.c matrix.h
    	$(CC) -c $< $(LIB)
    main.o: main.c
    	$(CC) -c $< $(LIB)
    clean:
    	rm -f *.o matrix tests