Skip to content
Snippets Groups Projects
Select Git revision
  • 58e9d4225f9e2d72640c38e13ff743d453dcfce1
  • master default protected
  • corrections-enonce
  • 1-test-vec-to-coordinates
  • patch-1
5 results

Makefile

Blame
  • Forked from orestis.malaspin / isc_physics
    Source project has a limited visibility.
    Makefile 429 B
    CC=clang
    # OPTS=-g -O3 -Wall -Wextra -fsanitize=address -fsanitize=leak -std=c11
    # LINK=-lm -fsanitize=address -fsanitize=leak
    
    OPTS=-g -O3 -Wall -Wextra -std=c11
    LINK=-lm
    
    main: main.o vec2.o util.o
    	$(CC) $(OPTS) -o $@ $^ $(LINK)
    
    main.o: main.c
    	$(CC) $(OPTS) -c $^
    
    vec2.o: vec2.c vec2.h
    	$(CC) $(OPTS) -c $^
    
    util.o: util.c util.h
    	$(CC) $(OPTS) -c $^
    
    test:
    	make -C tests test
    
    clean:
    	rm -f *.o main
    	make -C tests clean