homemade_speedstep/Makefile

24 lines
424 B
Makefile
Raw Normal View History

2022-11-10 05:27:34 -03:00
CC = gcc
CFLAGS = -Wall -Wpedantic -Wextra -O2 -march=native
SRC = src
BINDIR = bin
BIN = homemade_speedstep
all: $(BIN)
$(BIN):
$(CC) $(CFLAGS) -DNDEBUG -s $(SRC)/$(BIN).c -o $(BINDIR)/$@
debug:
$(CC) $(CFLAGS) -g $(SRC)/$(BIN).c -o $(BINDIR)/$(BIN)
install:
cp $(BINDIR)/$(BIN) /usr/bin/$(BIN)
install-openrc:
cp init.d/$(BIN) /etc/init.d/$(BIN)
cp conf.d/$(BIN) /etc/conf.d/$(BIN)
2022-11-10 05:27:34 -03:00
clean:
$(RM) -r $(BINDIR)/*