Files
mpc/Makefile

19 lines
370 B
Makefile
Raw Normal View History

2013-09-19 20:57:40 +01:00
CC = gcc
CFLAGS = -ansi -pedantic -Wall -Wno-overlength-strings -Werror -O3 -g
2013-09-19 20:57:40 +01:00
TESTS = $(wildcard tests/*.c)
EXAMPLES = $(wildcard examples/*.c)
EXAMPLESEXE = $(EXAMPLES:.c=)
2013-09-19 20:57:40 +01:00
all: $(EXAMPLESEXE) check
2013-09-19 20:57:40 +01:00
check: $(TESTS) mpc.c
2013-10-04 19:28:13 +01:00
$(CC) $(CFLAGS) $^ -lm -o test
2013-09-19 20:57:40 +01:00
./test
examples/%: examples/%.c mpc.c
$(CC) $(CFLAGS) $^ -lm -o $@
2013-09-19 20:57:40 +01:00
clean:
2014-01-21 10:23:58 -05:00
rm test