2024-06-12 17:58:54 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								PKG_CONFIG?=pkg-config
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-10 11:54:27 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								WAYLAND_PROTOCOLS!=$(PKG_CONFIG) --variable=pkgdatadir wayland-protocols
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								WAYLAND_SCANNER!=$(PKG_CONFIG) --variable=wayland_scanner wayland-scanner
							 | 
						
					
						
							
								
									
										
										
										
											2024-06-12 10:01:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-12 23:46:57 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								PKGS="wlroots-0.19" wayland-server xkbcommon
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-10 11:54:27 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								CFLAGS_PKG_CONFIG!=$(PKG_CONFIG) --cflags $(PKGS)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								CFLAGS+=$(CFLAGS_PKG_CONFIG)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								LIBS!=$(PKG_CONFIG) --libs $(PKGS)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								all: tinywl
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-15 10:56:55 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-03 10:55:14 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# wayland-scanner is a tool which generates C headers and rigging for Wayland
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# protocols, which are specified in XML. wlroots requires you to rig these up
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# to your build system yourself and provide them in the include path.
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-15 10:56:55 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								xdg-shell-protocol.h:
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-03 15:39:04 -05:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(WAYLAND_SCANNER) server-header \
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-15 10:56:55 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
										$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-06-12 10:01:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								tinywl.o: tinywl.c xdg-shell-protocol.h
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-10 11:54:27 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(CC) -c $< -g -Werror $(CFLAGS) -I. -DWLR_USE_UNSTABLE -o $@
							 | 
						
					
						
							
								
									
										
										
										
											2024-06-12 10:01:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								tinywl: tinywl.o
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-10 11:54:27 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									$(CC) $^ $> -g -Werror $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-15 10:56:55 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								clean:
							 | 
						
					
						
							
								
									
										
										
										
											2024-06-12 10:01:52 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									rm -f tinywl tinywl.o xdg-shell-protocol.h
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-15 10:56:55 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2024-07-10 11:54:27 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								.PHONY: all clean
							 |