svd2cpp/Makefile

22 lines
410 B
Makefile
Raw Normal View History

2019-11-14 06:51:08 +00:00
OBJS = Build/main.o tinyxml2/tinyxml2.o
SOURCE = Src/main.cpp tinyxml2/tinyxml2.cpp
2019-11-14 07:18:00 +00:00
INCLUDE = -I tinyxml2 -I cxxopts/include
2019-11-14 06:51:08 +00:00
OUT = svd2cpp
CC = g++
FLAGS = -g -c -Wall
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
tinyxml2/tinyxml2.o:
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)