aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4e4429badbf5760c83cfa91dea75abf4f00c2ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
.PHONY: all clean

all: copy_pixels_swap_hack.so test_copy_to_front

clean:
	-rm copy_pixels_swap_hack.so test_copy_to_front

copy_pixels_swap_hack.so: copy_pixels_swap_hack.c
	$(CC) -shared -o $@ -O2 -fPIC $< -ldl

test_copy_to_front: test_copy_to_front.c
	$(CC) -o $@ -O2 -fPIE $< -lGL -lglut -lm