Makefile 421 Bytes
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
  # 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
/jdi/'s avatar
/jdi/ committed
7
CFLAGS  = -g -Wall -lrt -lpthread -lc -std=c++11
/jdi/'s avatar
/jdi/ committed
8
9
10
11
12
13

  # the build target executable:
TARGET = smrtlink

all: $(TARGET)

/jdi/'s avatar
/jdi/ committed
14
15
$(TARGET): src/*.cpp
	$(CC) $(CFLAGS) -o $(TARGET) src/*.cpp src/*.h
/jdi/'s avatar
/jdi/ committed
16
17
18
19
	
clean:
	$(RM) $(TARGET)