diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ -CC = gcc -CFLAGS = -Wall -Wextra -O2 -std=c11 -fwrapv +CXX = g++ +CXXFLAGS = -Wall -Wextra -O2 -std=c++11 INSTALL_DIR = $(HOME)/prefix/bin BIN = brightness @@ -16,5 +16,5 @@ install: sudo chmod +s $(INSTALL_DIR)/brightness -$(BIN): brightness.c $(wildcard *.h) - $(CC) $(CFLAGS) $(filter %.c,$^) -o $@ +$(BIN): brightness.cpp $(wildcard *.h) + $(CXX) $(CXXFLAGS) $(filter %.cpp,$^) -o $@ |