20 lines
412 B
Makefile
20 lines
412 B
Makefile
# the compiler: gcc for C program, define as g++ for C++
|
|
CC = g++
|
|
|
|
# compiler flags:
|
|
# -g adds debugging information to the executable file
|
|
# -Wall turns on most, but not all, compiler warnings
|
|
#-I
|
|
CFLAGS = -g -Wall -std=c++11
|
|
|
|
# the build target executable:
|
|
TARGET = smrtlink
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): src/*.cpp
|
|
$(CC) $(CFLAGS) -o $(TARGET) src/*.cpp src/*.h
|
|
|
|
clean:
|
|
rm src/$(TARGET).g
|
|
|