argbColors/Makefile
Dmitry Isaenko 94bcef2016
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
quite better makefile
2025-02-09 21:46:47 +03:00

21 lines
No EOL
421 B
Makefile

MKDIR_P = mkdir -p
CFLAGS += -std=c17 -I/usr/include/ -O2 -Wno-unused-result
MKDIR_P = mkdir -p
APP_NAME = argb-colors
INSTALL_DIR = /usr/bin/
all: $(APP_NAME)
$(APP_NAME): ./src/$(APP_NAME).c
$(MKDIR_P) ./bin
$(CC) $(CFLAGS) ./src/$(APP_NAME).c -lusb-1.0 -o ./bin/$(APP_NAME)
clean:
rm -f ./bin/*.o \
./bin/$(APP_NAME)
install:
install ./bin/$(APP_NAME) $(INSTALL_DIR)
uninstall:
rm $(INSTALL_DIR)$(APP_NAME)