Permalink
Browse files

Fix compilation of cocoahelper on XCode 7 and macOS 10.11.

  • Loading branch information...
elliottslaughter committed Aug 6, 2016
1 parent 44cd19e commit b47a95cf2593b7a1b5b33b07697f5a55c0a826ab
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +3 −3 lispbuilder-sdl/cocoahelper/Makefile
View
@@ -4,3 +4,4 @@
*.framework
*.dylib
*.o
@@ -4,15 +4,15 @@ SDL_CFLAGS=$(CFLAGS) $(shell sdl-config --cflags)
SDL_LDFLAGS=$(LDFLAGS) $(shell sdl-config --libs)
else
SDL_CFLAGS=$(CFLAGS) -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/Library/Frameworks/SDL.framework/Headers/
SDL_LDFLAGS=$(LDFLAGS) -framework SDL -framework Cocoa
SDL_LDFLAGS=$(LDFLAGS) -F/Library/Frameworks -framework SDL -framework Cocoa
endif
.PHONY: all
all: cocoahelper.framework
cocoahelper.dylib : cocoahelper.m
gcc -fPIC $(SDL_CFLAGS) -c cocoahelper.m -o cocoahelper.o
gcc -dynamiclib $(SDL_LDFLAGS) -o cocoahelper.dylib cocoahelper.o
clang -fPIC $(SDL_CFLAGS) -c cocoahelper.m -o cocoahelper.o
clang -dynamiclib $(SDL_LDFLAGS) -o cocoahelper.dylib cocoahelper.o
cocoahelper.framework: cocoahelper.dylib
rm -rf cocoahelper.framework

0 comments on commit b47a95c

Please sign in to comment.