1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00
srs/trunk/3rdparty/st-srs/tools/stack/Makefile

20 lines
456 B
Makefile
Raw Normal View History

.PHONY: clean
CFLAGS=-g -O0
OS_NAME = $(shell uname -s)
ST_TARGET = linux-debug
ifeq ($(OS_NAME), Darwin)
ST_TARGET = darwin-debug
CPU_ARCHS = $(shell g++ -dM -E - </dev/null |grep -q '__x86_64' && echo x86_64)
CPU_ARCHS += $(shell g++ -dM -E - </dev/null |grep -q '__aarch64' && echo arm64)
CFLAGS += -arch $(CPU_ARCHS)
endif
./stack: stack.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS)
clean:
rm -rf stack stack.dSYM