|
|
@ -1,7 +1,9 @@
|
|
|
|
CFLAGS=-std=c99 -Wextra -pedantic -g -O2
|
|
|
|
CFLAGS=-std=c99 -Wextra -pedantic -g -O2
|
|
|
|
|
|
|
|
|
|
|
|
TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs ncurses-pong bit-fuckery bit-fuckery2 checkcheck multibrot bloom wo-lernen lua-foo binsearch test-inline-assembly uiowa-threads-example
|
|
|
|
CFLAGS=-std=c99 -Wextra -pedantic -g -O0
|
|
|
|
EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s tags
|
|
|
|
|
|
|
|
|
|
|
|
TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs ncurses-pong bit-fuckery bit-fuckery2 checkcheck multibrot bloom wo-lernen lua-foo binsearch test-inline-assembly uiowa-threads-example mtrace-test
|
|
|
|
|
|
|
|
EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s tags mtrace-test.trace mtrace-test.txt
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGETS) $(EXTRAS)
|
|
|
|
all: $(TARGETS) $(EXTRAS)
|
|
|
@ -50,5 +52,11 @@ test-inline-assembly: test-inline-assembly.c
|
|
|
|
test-inline-assembly.s: test-inline-assembly.c
|
|
|
|
test-inline-assembly.s: test-inline-assembly.c
|
|
|
|
$(CC) -Wall -S -o $@ $<
|
|
|
|
$(CC) -Wall -S -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mtrace-test.trace: mtrace-test
|
|
|
|
|
|
|
|
MALLOC_TRACE=$@ ./mtrace-test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mtrace-test.txt: mtrace-test.trace
|
|
|
|
|
|
|
|
-mtrace mtrace-test mtrace-test.trace > mtrace-test.txt
|
|
|
|
|
|
|
|
|
|
|
|
uiowa-threads-example: uiowa-threads.o uiowa-threads-example.c
|
|
|
|
uiowa-threads-example: uiowa-threads.o uiowa-threads-example.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|