sync with tizen_2.2
[sdk/emulator/qemu.git] / gl / dgles2 / src / Makefile
1 include $(T)/common.mak
2
3 SUBDIRS=EGL GLES GLES2
4
5 # Pathify.
6 P_O := $(call pathify,$(O))
7 P_S := $(call pathify,$(S))
8 P_T := $(call pathify,$(T))
9 P_I := $(call pathify,$(I))
10
11 all:    $(addsuffix -all, $(SUBDIRS))
12 clean:  $(addsuffix -clean, $(SUBDIRS))
13 distclean:      $(addsuffix -distclean, $(SUBDIRS))
14 depend: $(addsuffix -depend, $(SUBDIRS))
15 install:        $(addsuffix -install, $(SUBDIRS))
16
17 define SUBDIR_template
18 $(1)-all:
19         $(MAKE) -C $(1) all O=../$(P_O) T=../$(P_T)
20 $(1)-clean:
21         $(MAKE) -C $(1) clean O=../$(P_O) T=../$(P_T)
22 $(1)-distclean:
23         $(MAKE) -C $(1) distclean O=../$(P_O) T=../$(P_T)
24 $(1)-depend:
25         $(MAKE) -C $(1) depend O=../$(P_O) T=../$(P_T)
26 $(1)-install:
27         $(MAKE) -C $(1) install O=../$(P_O) T=../$(P_T) I=$(P_I)/lib/$(CONFIG_LIB_SUBDIR)
28 endef
29
30 $(foreach SUBDIR,$(SUBDIRS),$(eval $(call SUBDIR_template,$(SUBDIR))))