summaryrefslogtreecommitdiff
path: root/progs/perf/Makefile
blob: 066eb8608ec37cd13059be676fcc9d70a4e0c9fd (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# progs/demos/Makefile

TOP = ../..
include $(TOP)/configs/current

INCDIR = $(TOP)/include

LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) \
	-l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)

# using : to avoid APP_CC pointing to CC loop
CC := $(APP_CC)
CFLAGS += -I$(INCDIR)
LDLIBS = $(LIBS)

PROG_SOURCES = \
	copytex.c \
	drawoverhead.c \
	fbobind.c \
	fill.c \
	genmipmap.c \
	readpixels.c \
	swapbuffers.c \
	teximage.c \
	vbo.c \
	vertexrate.c \

PROG_OBJS = $(PROG_SOURCES:.c=.o)

PROGS = $(PROG_SOURCES:%.c=%)


UTIL_SOURCES = \
	common.c \
	glmain.c

UTIL_HEADERS = \
	common.h \
	glmain.h

UTIL_OBJS = $(UTIL_SOURCES:.c=.o)



default: $(PROGS)

$(PROG_OBJS): $(UTIL_HEADERS)

$(PROGS): $(UTIL_OBJS)



clean:
	-rm -f $(PROGS)
	-rm -f *.o *~