clean up
This commit is contained in:
parent
b76fb38bc2
commit
c99118b423
2 changed files with 52 additions and 0 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# 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
|
||||
CFLAGS = -g -Wall -lrt -std=c++11
|
||||
|
||||
# the build target executable:
|
||||
TARGET = smrtlink
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(TARGET).o
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).o
|
||||
|
||||
$(TARGET).o: src/*.cpp
|
||||
$(CC) $(CFLAGS) src/*.cpp src/*.h
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue