summaryrefslogtreecommitdiff
path: root/egl_1_4/makefile-dynamic
blob: ddeef9ada5c8085a6956138b6bb5db1d0b1b92d0 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/make


CFLAGS = -I. -I../include -fPIC -DPROVIDING_RUNTIME_BINDING -Werror-implicit-function-declaration -O3 -g
ARFLAGS = rucv


#LIB = libEGLbind.a

LIBBASE = libEGL.so
LIBMAJOR = 1
LIBMINOR = 0
LIBVER = $(LIBMAJOR).$(LIBMINOR)
LIBSONAME = $(LIBBASE).$(LIBMAJOR)
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,$(LIBSONAME) -I../include -o $@ $(OBJS) -I../include -ldl -lX11
#	$(AR) $(ARFLAGS) $@ $(OBJS)


install:	$(LIB)
	cp $(LIB) ../lib/host-gl/
	ln -s $(LIB) ../lib/host-gl/$(LIBSONAME)

# 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