-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 870 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 870 Bytes
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
35
36
37
38
39
40
41
MAKEFLAGS+=--no-print-directory
CC=gcc
DEBUG=-g
CFLAGS=-Wall -Wextra -pedantic $(DEBUG)
APP_ENTRY=main.c
APP_NAME=note-gui
BUILD_DIR=.
SRC_DIR=./gui
GUI=$(SRC_DIR)/$(APP_ENTRY)
SRCS := $(shell find $(SRC_DIR) -name '*.c')
gui-update:
@echo "\033[30m\033[42m[ GUI UPDATE ]\033[39m\033[49m"
@make gui-build
@echo "\033[30m\033[42m[ GUI RUN ]\033[39m\033[49m"
@make gui-run
gui-build:
@make gui-clear
@echo "\033[30m\033[42m[ GUI BUILD ]\033[39m\033[49m"
@$(CC) $(CFLAGS) `pkg-config --cflags gtk4` $(SRCS) -o $(APP_NAME) `pkg-config --libs gtk4`
gui-run:
@./$(APP_NAME)
gui-clear:
@echo "\033[30m\033[42m[ GUI CLEAR ]\033[39m\033[49m"
@rm -f ./$(APP_NAME)
gui-debug:
gdb ./$(APP_NAME)
gui-debug-gtk-inspectork:
GTK_DEBUG=interactive ./$(APP_NAME)
script-descriptions:
@bash descriptions.bash
vim-clean:
find ./ -type f -name '*.swp' | xargs rm