Proof-of-concept driver added
This commit is contained in:
		
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,13 +1,13 @@
 | 
			
		||||
NAME=ginput
 | 
			
		||||
CC=gcc
 | 
			
		||||
CFLAGS=$(shell pkg-config --cflags gtk4 libadwaita-1 libusb-1.0) -O3 -I src
 | 
			
		||||
CFLAGS=$(shell pkg-config --cflags gtk4 libadwaita-1 libusb-1.0) -O3 -Wall -I src
 | 
			
		||||
LDFLAGS=$(shell pkg-config --libs gtk4 libadwaita-1 libusb-1.0)
 | 
			
		||||
BUILD_DIR=build
 | 
			
		||||
 | 
			
		||||
UI := $(shell find ui/ -name '*.ui')
 | 
			
		||||
C_FILES := $(shell find src/ -name '*.c')
 | 
			
		||||
 | 
			
		||||
all: resources $(BUILD_DIR)/$(NAME)
 | 
			
		||||
all: resources $(BUILD_DIR)/$(NAME) $(BUILD_DIR)/drivers
 | 
			
		||||
 | 
			
		||||
# Top-level targets
 | 
			
		||||
resources: $(BUILD_DIR)/glib-2.0/schemas/gschemas.compiled
 | 
			
		||||
@@ -29,6 +29,10 @@ $(BUILD_DIR)/glib-2.0/schemas/gschemas.compiled: v.ginput.gschema.xml | $(BUILD_
 | 
			
		||||
	mkdir -p $(BUILD_DIR)/glib-2.0/schemas
 | 
			
		||||
	glib-compile-schemas . --targetdir=$(BUILD_DIR)/glib-2.0/schemas
 | 
			
		||||
 | 
			
		||||
# Drivers
 | 
			
		||||
$(BUILD_DIR)/drivers:
 | 
			
		||||
	cd drivers && make
 | 
			
		||||
 | 
			
		||||
# Phony targets
 | 
			
		||||
.PHONY: clean
 | 
			
		||||
clean:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user