diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-27 07:07:40 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-27 07:07:40 +0000 |
commit | 6c3ec96ac5a1baff95b71effec4917bc7fc6d58a (patch) | |
tree | 224f6580d2f57e96ec275e45925fee3b56fcb182 /lib/libGL | |
parent | 460dd62fdcfca77ce9a12303349dab8565744a8b (diff) |
Fix previous, which left out C sources.
Diffstat (limited to 'lib/libGL')
-rw-r--r-- | lib/libGL/glsl/libglsl/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libGL/glsl/libglsl/Makefile b/lib/libGL/glsl/libglsl/Makefile index 150f6b1fe..073dc8be0 100644 --- a/lib/libGL/glsl/libglsl/Makefile +++ b/lib/libGL/glsl/libglsl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2011/10/26 21:48:08 matthieu Exp $ +# $OpenBSD: Makefile,v 1.3 2011/10/27 07:07:39 matthieu Exp $ .include <bsd.xconf.mk> MESA= ${.CURDIR}/../../../../dist/Mesa/src/mesa @@ -92,7 +92,7 @@ SRCS= \ $(C_SOURCES) \ $(CXX_SOURCES) -OBJS+= $(CXX_SOURCES:.cpp=.so) +OBJS+= $(C_SOURCES:.c=.so) $(CXX_SOURCES:.cpp=.so) INCLUDES= \ -I${X11BASE}/include/GL \ @@ -116,15 +116,15 @@ clean: cleandir: clean -# Tweak suffixes: only .cpp is used for C++, +# Tweak suffixes: only .cpp is used for C++, # ignore .l and .y to avoid rebuilding cpp-{lex,parse}.c # which need bison/recent flex. .SUFFIXES: -.SUFFIXES: .out .o .go .po .so .S .s .c .cc .cpp .f .ln .m4 .m +.SUFFIXES: .a .so .c .cpp -.cpp.o: - @echo "${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}" - @${COMPILE.cc} ${.IMPSRC} -o ${.TARGET}.o +.c.so: + @echo "${COMPILE.c} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}" + @${COMPILE.c} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}.o @${LD} -X -r ${.TARGET}.o -o ${.TARGET} @rm -f ${.TARGET}.o |