Makefile 462 Bytes
Newer Older
/jdi/'s avatar
/jdi/ committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)