diff options
Diffstat (limited to 'egl_1_4/makefile-dynamic')
-rwxr-xr-x | egl_1_4/makefile-dynamic | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/egl_1_4/makefile-dynamic b/egl_1_4/makefile-dynamic new file mode 100755 index 0000000..e3c8bef --- /dev/null +++ b/egl_1_4/makefile-dynamic @@ -0,0 +1,84 @@ +#!/bin/make + + +CFLAGS = -I. -I../include -fPIC -DPROVIDING_RUNTIME_BINDING -Werror-implicit-function-declaration -O3 -g +ARFLAGS = rucv + + +#LIB = libEGLbind.a + +LIBBASE = libEGL.so +LIBVER = 1.0 +LIB = $(LIBBASE).$(LIBVER) + +END = +SRCS = \ + 31Error.c \ + 32GetDisplay.c \ + 32Initialize.c \ + 32Terminate.c \ + 33QueryString.c \ + 34GetConfigs.c \ + 34ChooseConfig.c \ + 34GetConfigAttrib.c \ + 35CreateWindowSurface.c \ + 35CreatePbufferSurface.c \ + 35CreatePbufferFromClientBuffer.c \ + 35CreatePixmapSurface.c \ + 35DestroySurface.c \ + 36SurfaceAttrib.c \ + 36QuerySurface.c \ + 36BindTexImage.c \ + 36ReleaseTexImage.c \ + 37BindAPI.c \ + 37QueryAPI.c \ + 37CreateContext.c \ + 37DestroyContext.c \ + 37MakeCurrent.c \ + 37GetCurrentContext.c \ + 37GetCurrentSurface.c \ + 37GetCurrentDisplay.c \ + 37QueryContext.c \ + 38WaitClient.c \ + 38WaitGL.c \ + 38WaitNative.c \ + 39SwapBuffers.c \ + 39CopyBuffers.c \ + 39SwapInterval.c \ + 3AGetProcAddress.c \ + 3BReleaseThread.c \ + 41LockSurfaceKHR.c \ + 41UnlockSurfaceKHR.c \ + 42CreateImageKHR.c \ + 42DestroyImageKHR.c \ + global.c \ + $(END) +OBJS = $(SRCS:.c=.o) + +default: __touch__ $(LIB) + +__touch__: + touch 33QueryString.c + +$(LIB): $(OBJS) + $(CC) -shared -Wl,-soname,$(LIBBASE).1 -I../include -o $@ $(OBJS) -I../include -ldl -lX11 +# $(AR) $(ARFLAGS) $@ $(OBJS) + + +install: $(LIB) + cp $(LIB) ../lib/host-gl/ + + +# supports + +clean: + $(RM) $(RMFLAGS) $(OBJS) + +clobber: clean + $(RM) $(RMFLAGS) $(LIB) core a.out + +wc: + wc $(SRCS) *.inl *.h + +#$(OBJS): EGL/egl.h EGL/eglext.h EGL/eglplatform.h +global.o: binding.inl |