Commit 0fc5acd1d51b263883a619df9f32d1db7a0bb6be
1 parent
61d636b8
Added '-lm' to the first example.
Showing
1 changed file
with
1 additions
and
1 deletions
00-sun/makefile
@@ -6,7 +6,7 @@ all: $(TARGET) | @@ -6,7 +6,7 @@ all: $(TARGET) | ||
6 | gcc -g -I.. -Wall -pedantic `sdl2-config --cflags` -c $< -o $@ | 6 | gcc -g -I.. -Wall -pedantic `sdl2-config --cflags` -c $< -o $@ |
7 | 7 | ||
8 | $(TARGET): $(TARGET).o ../primlib.o | 8 | $(TARGET): $(TARGET).o ../primlib.o |
9 | - gcc -g -I.. -Wall -pedantic `sdl2-config --cflags` ../primlib.o $< -o $@ -lSDL2_gfx `sdl2-config --libs` | 9 | + gcc -g -I.. -Wall -pedantic `sdl2-config --cflags` ../primlib.o $< -o $@ -lSDL2_gfx `sdl2-config --libs` -lm |
10 | 10 | ||
11 | ../primlib.o: ../primlib.c ../primlib.h | 11 | ../primlib.o: ../primlib.c ../primlib.h |
12 | 12 |