summaryrefslogtreecommitdiff
path: root/egl_1_4/makefile-single
diff options
context:
space:
mode:
Diffstat (limited to 'egl_1_4/makefile-single')
-rwxr-xr-xegl_1_4/makefile-single84
1 files changed, 84 insertions, 0 deletions
diff --git a/egl_1_4/makefile-single b/egl_1_4/makefile-single
new file mode 100755
index 0000000..3b880bf
--- /dev/null
+++ b/egl_1_4/makefile-single
@@ -0,0 +1,84 @@
+#!/bin/make
+
+
+CFLAGS = -I. -I../include -fPIC -Werror-implicit-function-declaration -O0 -g3
+ARFLAGS = rucv
+
+
+#LIB = libEGL.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 -o $@ $(OBJS)
+
+# $(AR) $(ARFLAGS) $@ $(OBJS)
+
+install: $(LIB)
+ cp $(LIB) ../lib
+
+
+# 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