Skip to content
Snippets Groups Projects
Select Git revision
  • 2d3a9a6eb682660b7c3f342c3d7975da1e0a1bb5
  • master default protected
  • jeremy.meissner-master-patch-15406
  • jeremy.meissner-master-patch-56095
  • 1-test-vec-to-coordinates
  • patch-1
6 results

Makefile

Blame
  • Forked from orestis.malaspin / isc_physics
    Source project has a limited visibility.
    Makefile 433 B
    #The compiler
    CC:=gcc
    #The flags passed to the compiler
    CFLAGS:=-g -O3 -Wall -Wextra -fsanitize=address -fsanitize=leak -std=gnu11
    #The flags passed to the linker
    LDFLAGS:=-lm -lSDL2
    #Path to the lib Vec2
    VPATH:=vec2 gfx
    
    run_tests: tests
    	./$<
    
    main: main.o vec2.o gfx.o
    	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
    
    tests: vec_tests.o vec2.o
    	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
    
    vec2.o: vec2.h
    
    gfx.o: gfx.h
    
    clean:
    	rm -f *.o main tests