json lib added

This commit is contained in:
/jdi/ 2015-10-15 20:36:45 +02:00
parent 56b4b3a84b
commit 2c81b49e6e

View file

@ -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)