Initial
[matroid-finder.git] / Makefile
blob7bca8d9bf4be97e2ad8371084d98641e3bd72d8d
1 # Compiler options
2 CC=cc
3 LD=ld
4 CFLAGS=-g -Wall -Wextra -pedantic -std=c99 -Werror
5 LDFLAGS=
7 V_MAJOR=0
8 V_MINOR=1
9 V_PATCH=0
11 # Libraries
13 # Our files
15 CFILES=$(wildcard *.c)
16 HFILES=$(wildcard *.h)
17 OFILES=$(patsubst %.c,%.o,$(CFILES))
19 default: all
20 .PHONY: all
21 all: matroid_find
23 matroid_find: $(OFILES)
24 $(CC) -o $@ $^ $(LDFLAGS)
26 .PHONY: clean
27 clean:
28 rm -f $(OFILES)
29 rm -f matroid_finder
31 # Not automatically kept in sync!
33 matroid_find.o: matroid_find.c Makefile $(HFILES)
34 $(CC) $(CFLAGS) -o $@ -c $<