diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-04 00:54:28 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-04 00:54:28 +0000 |
commit | 68fcf7960caf5646fdfa7c401cd618dcf6638ffc (patch) | |
tree | 8bdccd3a1052cbff096fc18ea26a54998737fbec /Makefile | |
parent | ecf5f1863c3b45e903417387d03e404cc0a08c0c (diff) |
added custom rule to build multitouch.pd_darwin properly
svn path=/trunk/externals/apple/; revision=13970
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -96,7 +96,7 @@ ifeq ($(UNAME),Darwin) ifeq ($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 8) FAT_FLAGS = -arch ppc -arch i386 -mmacosx-version-min=10.4 else - FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.5 + FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 SOURCES += $(SOURCES_iphoneos) endif CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include \ @@ -165,6 +165,13 @@ all: $(SOURCES:.c=.$(EXTENSION)) $(CC) $(LDFLAGS) -o "$*.$(EXTENSION)" "$*.o" $(LIBS) chmod a-x "$*.$(EXTENSION)" +multitouch.$(EXTENSION): multitouch.c + $(CC) $(CFLAGS) -o multitouch.o -c multitouch.c + $(CC) $(LDFLAGS) -F/System/Library/PrivateFrameworks \ + -o multitouch.$(EXTENSION) multitouch.o $(LIBS) \ + -framework MultitouchSupport + chmod a-x multitouch.$(EXTENSION) + # this links everything into a single binary file $(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS) |