Skip to content

Commit 8bfffc1

Browse files
committed
Fix the build on MacOS 15.6
1 parent 01650ea commit 8bfffc1

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ endif
1313
%.o: %.c Makefile mk/*.mk
1414
$(CC) -c $< -o $@ $(CFLAGS)
1515

16+
%.o: %.m Makefile mk/*.mk
17+
$(CC) -c $< -o $@ $(CFLAGS)
18+
1619
CFLAGS:=-g\
1720
-Wall\
1821
-Wextra\

mk/macos.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ CFILES=$(shell find src/*.c)
44
OBJCFILES=$(shell find src/platform/macos -name '*.m')
55
OBJECTS=$(CFILES:.c=.o) $(OBJCFILES:.m=.o)
66

7-
RELFLAGS=-Wl,-adhoc_codesign -framework cocoa -framework carbon
7+
RELFLAGS=-Wl,-adhoc_codesign -framework cocoa -framework carbon -framework ApplicationServices
88

99
all: $(OBJECTS)
1010
-mkdir bin
11-
$(CC) -o bin/warpd $(OBJECTS) -framework cocoa -framework carbon
11+
$(CC) -o bin/warpd $(OBJECTS) -framework cocoa -framework carbon -framework ApplicationServices
1212
./codesign/sign.sh
1313
rel: clean
1414
$(CC) -o bin/warpd-arm $(CFILES) $(OBJCFILES) -target arm64-apple-macos $(CFLAGS) $(RELFLAGS)

src/platform/macos/macos.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ struct box {
3838
NSColor *color;
3939
};
4040

41-
size_t nr_boxes;
42-
4341
struct drawing_hook {
4442
void (*hook)(void *arg, NSView *view);
4543
void *arg;

0 commit comments

Comments
 (0)