2019-11-14 09:34:46 +00:00
|
|
|
OBJS = Build/main.o Build/XmlParser.o tinyxml2/libtinyxml2.a
|
2019-11-14 06:51:08 +00:00
|
|
|
SOURCE = Src/main.cpp tinyxml2/tinyxml2.cpp
|
2019-11-14 09:34:46 +00:00
|
|
|
INCLUDE = -I tinyxml2 -I cxxopts/include -I Src
|
2019-11-14 06:51:08 +00:00
|
|
|
OUT = svd2cpp
|
|
|
|
CC = g++
|
2019-11-14 12:38:04 +00:00
|
|
|
FLAGS = -g -c -Wall -std=c++17
|
2019-11-14 06:51:08 +00:00
|
|
|
|
|
|
|
all: $(OBJS)
|
|
|
|
$(CC) -g $(OBJS) -o $(OUT) $(LFLAGS)
|
|
|
|
|
|
|
|
Build/main.o: Src/main.cpp
|
|
|
|
mkdir -p Build
|
2019-11-14 07:18:00 +00:00
|
|
|
$(CC) $(FLAGS) Src/main.cpp $(INCLUDE) -o Build/main.o
|
2019-11-14 06:51:08 +00:00
|
|
|
|
2019-11-14 09:34:46 +00:00
|
|
|
Build/XmlParser.o: Src/XmlParser.cpp
|
|
|
|
mkdir -p Build
|
|
|
|
$(CC) $(FLAGS) Src/XmlParser.cpp $(INCLUDE) -o Build/XmlParser.o
|
|
|
|
|
|
|
|
tinyxml2/libtinyxml2.a:
|
2019-11-14 07:18:00 +00:00
|
|
|
$(MAKE) -C tinyxml2/ staticlib
|
2019-11-14 06:51:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(OUT)
|
|
|
|
|