summaryrefslogtreecommitdiff
path: root/lib/libGL/glsl/glcpp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libGL/glsl/glcpp/Makefile')
-rw-r--r--lib/libGL/glsl/glcpp/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/libGL/glsl/glcpp/Makefile b/lib/libGL/glsl/glcpp/Makefile
new file mode 100644
index 000000000..2362c90a7
--- /dev/null
+++ b/lib/libGL/glsl/glcpp/Makefile
@@ -0,0 +1,45 @@
+# $OpenBSD: Makefile,v 1.1 2011/10/23 13:57:36 matthieu Exp $
+.include <bsd.xconf.mk>
+
+MESA= ${.CURDIR}/../../../../dist/Mesa/src/mesa
+MAPI= ${.CURDIR}/../../../../dist/Mesa/src/mapi
+GLSL= ${.CURDIR}/../../../../dist/Mesa/src/glsl
+
+MESA_INCLUDE= ${.CURDIR}/../../../../dist/Mesa/include
+
+
+GLCPP_SOURCES = \
+ hash_table.c \
+ glcpp.c
+
+INCLUDES= \
+ -I${X11BASE}/include/GL \
+ -I$(GLSL) \
+ -I$(GLSL)/glcpp \
+ -I$(MESA) \
+ -I$(MAPI) \
+ -I$(MESA_INCLUDE)
+
+CPPFLAGS+= $(INCLUDES) $(DEFINES)
+
+SRCS= $(GLCPP_SOURCES)
+
+OBJS= $(GLCPP_SOURCES:.c=.o) \
+
+PROG= glcpp
+
+LDADD= ../libglsl/libglsl.a
+
+all: ${PROG}
+
+clean:
+ rm -f ${OBJS} ${PROG}
+
+${PROG}: ${LIBCRT0} ${OBJS} ${LIBC} ${CRTBEGIN} ${CRTEND} ${DPADD}
+ ${CXX} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD}
+
+.include <bsd.xorg.mk>
+
+.PATH: ${GLSL}
+.PATH: ${GLSL}/glcpp
+.PATH: ${MESA}/program