summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 4e93005c6eda6a80a886b0807c48b272a387ddf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
### if you want X11: CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL
### and add graphics.o to hackvr build target.
### fuck it. I'll fix it later.
CFLAGS=-Wall -pedantic -std=c99 -DGRAPHICAL -ffast-math
#CFLAGS=-std=c99 -DGRAPHICAL -ffast-math

all: hackvr slowcat

#for x11
hackvr: LDLIBS=-lm -lX11
#for opengl
#hackvr: LDLIBS=-lm -lGL -lGLU -lglut

hackvr: hackvr.o graphics.o graphics_x11.o
#hackvr: hackvr.o graphics.o graphics_opengl.o

graphics_opengl.o: LDLIBS=-lm -lGL -lGLU -lglut

graphics_x11.o: LDLIBS=-lm -lX11

hackvr.o: LDLIBS=-lm -lX11

graphics.o: LDLIBS=-lm -lX11

clean:
	rm -f hackvr
	rm -f slowcat
	rm -f *.o