summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b84c3d3cfd02e78b0a6db6cf2cb8af1e290d518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS += -W -Wall -g -O3
CFLAGS += `pkg-config --cflags sdl cairo`

TARGETS=test-cairosdl fuzzy-balls sdl-clock gears

all: $(TARGETS)

fuzzy-balls: fuzzy-balls.o cairosdl.o
	$(CC) -o $@ $+ `pkg-config --libs sdl cairo`

sdl-clock: sdl-clock.o cairosdl.o
	$(CC) -o $@ $+ `pkg-config --libs sdl cairo`

gears: gears.o cairosdl.o
	$(CC) -o $@ $+ `pkg-config --libs sdl cairo`

test-cairosdl: test-cairosdl.o cairosdl.o
	$(CC) -o $@ $+ `pkg-config --libs sdl cairo`

clean:
	$(RM) $(TARGETS)
	$(RM) *.o
	$(RM) *~