mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
35 lines
801 B
Text
35 lines
801 B
Text
#****************************************************************************
|
|
# Makefile for TinyXml for Linux
|
|
#****************************************************************************
|
|
|
|
# Compiler configuration
|
|
CPP = g++
|
|
AR = ar rcs
|
|
CPPFLAGS = -Wall -Wno-unknown-pragmas -Wno-format -O3
|
|
|
|
# Target files
|
|
STATICLIB = libtinyxml.a
|
|
|
|
all: $(STATICLIB)
|
|
|
|
# Object files
|
|
OBJS = tinyxml.o \
|
|
tinyxmlparser.o \
|
|
tinyxmlerror.o \
|
|
tinystr.o
|
|
|
|
# Rule for static library
|
|
$(STATICLIB): $(OBJS)
|
|
$(AR) $@ $(OBJS)
|
|
|
|
# Compile rules
|
|
%.o : %.cpp
|
|
$(CPP) -c $(CPPFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(STATICLIB)
|
|
|
|
tinyxml.o: tinyxml.cpp tinyxml.h tinystr.h
|
|
tinyxmlparser.o: tinyxmlparser.cpp tinyxml.h tinystr.h
|
|
tinyxmlerror.o: tinyxmlerror.cpp tinyxml.h tinystr.h
|
|
tinystr.o: tinystr.cpp tinystr.h
|