20 lines
333 B
Makefile
20 lines
333 B
Makefile
|
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)
|
||
|
|
||
|
clean:
|
||
|
$(RM) -r $(BINDIR)/*
|