json lib added
This commit is contained in:
parent
56b4b3a84b
commit
2c81b49e6e
1 changed files with 13 additions and 10 deletions
21
Makefile
21
Makefile
|
@ -1,19 +1,22 @@
|
|||
CC = g++
|
||||
CFLAGS = -Wall -std=c++14
|
||||
CFLAGS = -g -c -std=c++14
|
||||
TARGET = smrtlink
|
||||
SOURCEDIR = src
|
||||
BUILDDIR = bin
|
||||
|
||||
SOURCES = $(wildcard $(SOURCEDIR)/*.cpp)
|
||||
OBJECTS = $(patsubst $(SOURCEDIR)/%.cpp,$(BUILDDIR)/%.o,$(SOURCES))
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): Types.o Program.o
|
||||
$(CC) $(CFLAGS) -o $(TARGET) *.o
|
||||
|
||||
Types.o: src/Types/*.cpp src/Types/*.h
|
||||
$(CC) $(CFLAGS) -c src/Types/*.cpp
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $^ -o $@
|
||||
|
||||
Program.o: src/*.cpp src/*.h
|
||||
$(CC) $(CFLAGS) -c src/*.cpp
|
||||
|
||||
$(OBJECTS): $(BUILDDIR)/%.o : $(SOURCEDIR)/%.cpp
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
|
||||
|
||||
clean:
|
||||
rm *.o
|
||||
|
||||
rm -f $(BUILDDIR)/*o $(TARGET)
|
||||
|
|
Loading…
Reference in a new issue