1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

ST: Refine tools and CMakeLists.txt. Add backtrace example. v5.0.79

This commit is contained in:
winlin 2022-10-21 22:42:58 +08:00
parent d9cf874033
commit 5a1a234855
18 changed files with 410 additions and 353 deletions

View file

@ -1,3 +1,3 @@
jmpbuf
jmpbuf.E.c
jmpbuf.E.txt

View file

@ -12,14 +12,14 @@ CPU_ARCHS += $(shell g++ -dM -E - </dev/null |grep -q '__aarch64' && echo arm64
CFLAGS += -arch $(CPU_ARCHS)
endif
default: ./jmpbuf ./jmpbuf.E.c
default: ./jmpbuf ./jmpbuf.E.txt
./jmpbuf: jmpbuf.c $(LDLIBS)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS)
./jmpbuf.E.c: jmpbuf.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -E -o jmpbuf.E.c $^ $(LDLIBS)
./jmpbuf.E.txt: jmpbuf.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -E -o jmpbuf.E.txt $^ $(LDLIBS)
clean:
rm -rf jmpbuf jmpbuf.E.c jmpbuf.dSYM
rm -rf jmpbuf jmpbuf.E.txt jmpbuf.dSYM