mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-27 06:20:34 +00:00
20 lines
503 B
Makefile
20 lines
503 B
Makefile
include ../Makefile.common
|
|
|
|
DSTROOT?=$(shell /bin/pwd)
|
|
SYMROOT?=$(shell /bin/pwd)
|
|
OBJROOT?=$(shell /bin/pwd)
|
|
|
|
CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
|
|
|
|
CFLAGS:=$(ARCH_FLAGS) -g -Wall -Os -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
|
|
CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null
|
|
|
|
all: $(DSTROOT)/jitter
|
|
|
|
$(DSTROOT)/jitter: timer_jitter.c
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f $(DSTROOT)/jitter $(OBJROOT)/*.o
|
|
rm -rf $(SYMROOT)/*.dSYM
|