summaryrefslogtreecommitdiff
path: root/src/egl/main/Makefile
blob: 7ab78197c7bc963e5bd3ebbe9729aa106e6f13ba (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
# src/egl/main/Makefile

TOP = ../../..
include $(TOP)/configs/current


INCLUDE_DIRS = -I$(TOP)/include -I$(TOP)/src/mesa/glapi

HEADERS = \
	eglconfig.h \
	eglcontext.h \
	egldisplay.h \
	egldriver.h \
	eglglobals.h \
	egllog.h \
	eglhash.h \
	eglmode.h \
	eglscreen.h \
	eglsurface.h

SOURCES = \
	eglapi.c \
	eglconfig.c \
	eglcontext.c \
	egldisplay.c \
	egldriver.c \
	eglglobals.c \
	egllog.c \
	eglhash.c \
	eglmode.c \
	eglscreen.c \
	eglsurface.c

OBJECTS = $(SOURCES:.c=.o)


.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@



default: depend library


# EGL Library
library: $(TOP)/$(LIB_DIR)/libEGL.so

$(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
	$(MKLIB) -o EGL -linker '$(CC)' -ldflags '$(LDFLAGS)' \
		-major 1 -minor 0 \
		-install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS)



clean:
	-rm -f *.o *.so*
	-rm -f core.*


depend: $(SOURCES) $(HEADERS)
	@ echo "running $(MKDEP)"
	@ touch depend
	$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) \
		$(SOURCES) $(HEADERS) > /dev/null 

include depend
# DO NOT DELETE