summaryrefslogtreecommitdiff
path: root/Makefile
blob: 926c88313bfe89d4f8a387cd82d66572565b9db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
love: gbeat gbeat.xml
.PHONY: love clean

CC=gcc
PKGS=glib-2.0 gtk+-3.0 gladeui-2.0 gthread-2.0 fftw3 alsa cairo
CFLAGS=-std=gnu99 -Wall -Wextra -pedantic -Wno-unused-parameter -g -O0 \
	`pkg-config --cflags $(PKGS)`
LDFLAGS=-g -lm `pkg-config --libs $(PKGS)` -rdynamic

clean:
	rm -f *.o gbeat

gbeat.xml: gbeat.glade
	gtk-builder-convert $^ $@

gbeat: galsa.o gfft.o gbeat.o
	$(CC) $(LDFLAGS) -o $@ $^

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