mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-31 00:38:59 +02:00
17
subprojects/tracy/library/unix/Makefile
Normal file
17
subprojects/tracy/library/unix/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
all: release
|
||||
|
||||
debug:
|
||||
@$(MAKE) -f debug.mk all
|
||||
|
||||
release:
|
||||
@$(MAKE) -f release.mk all
|
||||
|
||||
clean:
|
||||
@$(MAKE) -f build.mk clean
|
||||
rm -f libtracy-*.so
|
||||
|
||||
db: clean
|
||||
@bear -- $(MAKE) -f debug.mk all
|
||||
@mv -f compile_commands.json ../../
|
||||
|
||||
.PHONY: all clean debug release db
|
||||
13
subprojects/tracy/library/unix/debug.mk
Normal file
13
subprojects/tracy/library/unix/debug.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
CFLAGS := -g3 -Wall
|
||||
DEFINES := -DDEBUG
|
||||
BUILD := debug
|
||||
|
||||
ifndef TRACY_NO_ISA_EXTENSIONS
|
||||
ifeq ($(ARCH),x86_64)
|
||||
CFLAGS += -msse4.1
|
||||
endif
|
||||
endif
|
||||
|
||||
include build.mk
|
||||
13
subprojects/tracy/library/unix/release.mk
Normal file
13
subprojects/tracy/library/unix/release.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
CFLAGS := -O3 -s
|
||||
DEFINES := -DNDEBUG
|
||||
BUILD := release
|
||||
|
||||
ifndef TRACY_NO_ISA_EXTENSIONS
|
||||
ifeq ($(ARCH),x86_64)
|
||||
CFLAGS += -msse4.1
|
||||
endif
|
||||
endif
|
||||
|
||||
include build.mk
|
||||
Reference in New Issue
Block a user