Makefile 412 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
8
  #-I
CFLAGS  = -g  -Wall -std=c++11
/jdi/'s avatar
/jdi/ committed
9
10
11
12
13
14

  # the build target executable:
TARGET = smrtlink

all: $(TARGET)

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