summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: ddf28b02b3436565f27f727060a8403c3a22a262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC	= gcc
CFLAGS	= -W -Wall -g -std=c99 -O3 -ffast-math -march=native
LDFLAGS	=
LIBS	= -lm

all: csv

csv: mktables
	./mktables

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

mktables: mktables.o color.o rgbxyz.o matrix.o
	$(CC) $(LDLFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -f *.o mktables

distclean: clean
	rm -f *~ \#*

spotless: distclean
	rm -f *.csv