aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/demo/Makefile
blob: d908cdb4b25197fc84deecab62506ce619f50d06 (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
# src/egl/drivers/demo/Makefile

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


INCLUDE_DIRS = -I$(TOP)/include -I$(TOP)/src/egl/main


SOURCES = demo.c

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


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



default: $(TOP)/$(LIB_DIR)/demodriver.so


$(TOP)/$(LIB_DIR)/demodriver.so: $(OBJECTS)
	$(MKLIB) -o demodriver.so -noprefix -linker '$(CC)' \
		-ldflags '$(LDFLAGS)' -install $(TOP)/$(LIB_DIR) \
		$(OBJECTS)

install:
	$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
	$(INSTALL) $(TOP)/$(LIB_DIR)/demodriver.so $(DESTDIR)$(INSTALL_LIB_DIR)

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