mirror of
https://github.com/supleed2/svd2cpp.git
synced 2024-12-22 13:45:50 +00:00
22 lines
410 B
Makefile
22 lines
410 B
Makefile
OBJS = Build/main.o tinyxml2/tinyxml2.o
|
|
SOURCE = Src/main.cpp tinyxml2/tinyxml2.cpp
|
|
INCLUDE = -I tinyxml2 -I cxxopts/include
|
|
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
|
|
$(CC) $(FLAGS) Src/main.cpp $(INCLUDE) -o Build/main.o
|
|
|
|
tinyxml2/tinyxml2.o:
|
|
$(MAKE) -C tinyxml2/ staticlib
|
|
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(OUT)
|
|
|