This commit is contained in:
parent
8ce71e4701
commit
94bcef2016
2 changed files with 10 additions and 7 deletions
15
Makefile
15
Makefile
|
@ -1,18 +1,21 @@
|
||||||
CC = gcc
|
MKDIR_P = mkdir -p
|
||||||
|
CFLAGS += -std=c17 -I/usr/include/ -O2 -Wno-unused-result
|
||||||
MKDIR_P = mkdir -p
|
MKDIR_P = mkdir -p
|
||||||
APP_NAME = argb-colors
|
APP_NAME = argb-colors
|
||||||
|
INSTALL_DIR = /usr/bin/
|
||||||
|
|
||||||
all: $(APP_NAME)
|
all: $(APP_NAME)
|
||||||
|
|
||||||
argb-colors: ./src/$(APP_NAME).c
|
$(APP_NAME): ./src/$(APP_NAME).c
|
||||||
$(MKDIR_P) ./bin
|
$(MKDIR_P) ./bin
|
||||||
$(CC) -std=c17 -I/usr/include/ ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME)
|
$(CC) $(CFLAGS) ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./bin/*.o \
|
rm -f ./bin/*.o \
|
||||||
./bin/$(APP_NAME)
|
./bin/$(APP_NAME)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install ./bin/$(APP_NAME) /usr/bin
|
install ./bin/$(APP_NAME) $(INSTALL_DIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm /usr/bin/$(APP_NAME)
|
rm $(INSTALL_DIR)$(APP_NAME)
|
|
@ -8,7 +8,7 @@ enum separate_options {
|
||||||
B1, B2, B3, B4, B5, B6
|
B1, B2, B3, B4, B5, B6
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *argp_program_version = "argb-color 0.1\n\n\
|
const char *argp_program_version = "argb-color 0.2\n\n\
|
||||||
License: GPLv3+: GNU GPL version 3 or newer <https://gnu.org/licenses/gpl.html>.\n\
|
License: GPLv3+: GNU GPL version 3 or newer <https://gnu.org/licenses/gpl.html>.\n\
|
||||||
Dmitry Isaenko, 2025, Russia.\n\
|
Dmitry Isaenko, 2025, Russia.\n\
|
||||||
https://redrise.ru, https://github.com/developersu";
|
https://redrise.ru, https://github.com/developersu";
|
||||||
|
|
Loading…
Reference in a new issue