mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
Makefile
20 lines
464 B
Makefile
.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
|
|
|
|
./porting: porting.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS)
|
|
|
|
clean:
|
|
rm -rf porting porting.dSYM
|
|
|