File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313% .o : % .c Makefile mk/* .mk
1414 $(CC ) -c $< -o $@ $(CFLAGS )
1515
16+ % .o : % .m Makefile mk/* .mk
17+ $(CC ) -c $< -o $@ $(CFLAGS )
18+
1619CFLAGS: =-g\
1720 -Wall\
1821 -Wextra\
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ CFILES=$(shell find src/*.c)
44OBJCFILES =$(shell find src/platform/macos -name '* .m')
55OBJECTS=$(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
99all : $(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
1313rel : clean
1414 $(CC ) -o bin/warpd-arm $(CFILES ) $(OBJCFILES ) -target arm64-apple-macos $(CFLAGS ) $(RELFLAGS )
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ struct box {
3838 NSColor * color ;
3939};
4040
41- size_t nr_boxes ;
42-
4341struct drawing_hook {
4442 void (* hook )(void * arg , NSView * view );
4543 void * arg ;
You can’t perform that action at this time.
0 commit comments