2008-10-07 10:10:36 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								CFLAGS +=  -Wall -g $(shell pkg-config --cflags libffi libdrm)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								LDLIBS += $(shell pkg-config --libs libffi libdrm)
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 18:51:48 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								clients = flower pointer background window
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								all : wayland $(clients)
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:12:29 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								wayland_objs = wayland.o event-loop.o connection.o hash.o input.o egl-compositor.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-10-08 22:51:32 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								wayland : CFLAGS += -I../eagle
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								wayland : LDLIBS += -L../eagle -leagle -ldl
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								wayland : $(wayland_objs)
							 | 
						
					
						
							
								
									
										
										
										
											2008-10-08 22:51:32 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									gcc -o $@ $(LDLIBS) $(wayland_objs)
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-10-08 13:32:07 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								libwayland_objs = wayland-client.o connection.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-10-07 10:10:36 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								libwayland.so : $(libwayland_objs)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									gcc -o $@ $(libwayland_objs) -shared
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								flower_objs = flower.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pointer_objs = pointer.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 17:11:51 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								background_objs = background.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 18:51:48 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								window_objs = window.o
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$(clients) : CFLAGS += $(shell pkg-config --cflags cairo)
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 17:11:51 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								$(clients) : LDLIBS += $(shell pkg-config --libs cairo gdk-pixbuf-2.0) -lrt
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								background : CFLAGS += $(shell pkg-config --cflags gdk-pixbuf-2.0)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								background : LDLIBS += $(shell pkg-config --libs gdk-pixbuf-2.0)
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								define client_template
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$(1): $$($(1)_objs) libwayland.so
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								endef
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$(foreach c,$(clients),$(eval $(call client_template,$(c))))
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								$(clients) :
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									gcc -o $@ -L. -lwayland $(LDLIBS) $^
							 | 
						
					
						
							
								
									
										
										
										
											2008-09-30 09:46:10 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								clean :
							 | 
						
					
						
							
								
									
										
										
										
											2008-11-02 10:55:25 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									rm -f $(clients) wayland *.o libwayland.so
							 |