From 029f0be8e4beea787feb984b2797f6e23f7964ac Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 25 Oct 2009 04:11:05 +0000 Subject: first version of object for private MultitouchSupport framework based on code from steide and fingerpinger svn path=/trunk/externals/apple/; revision=12669 --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9498e23..a58276d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ SOURCES = # For objects that only build on certain platforms, add those to the SOURCES # line for the right platforms. -SOURCES_Darwin = ambient_light_sensor.c iodisplay.c keyboard_light.c sudden_motion_sensor.c smc.c +SOURCES_Darwin = ambient_light_sensor.c iodisplay.c keyboard_light.c sudden_motion_sensor.c smc.c multitouch.c SOURCES_Linux = SOURCES_Windows = @@ -51,9 +51,9 @@ ifeq ($(UNAME),Darwin) SOURCES += $(SOURCES_Darwin) EXTENSION = pd_darwin OS = macosx - OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast + OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=3 -fast FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4 - CFLAGS += -fPIC $(FAT_FLAGS) + CFLAGS += -fPIC -std=c99 $(FAT_FLAGS) LDFLAGS += -bundle -undefined dynamic_lookup $(FAT_FLAGS) LIBS += -lc STRIP = strip -x @@ -97,6 +97,13 @@ CFLAGS += $(OPT_CFLAGS) all: $(SOURCES:.c=.$(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) + rm -f -- multitouch.o + %.$(EXTENSION): %.c $(CC) $(CFLAGS) -o "$*.o" -c "$*.c" $(CC) $(LDFLAGS) -o "$*.$(EXTENSION)" "$*.o" $(LIBS) -- cgit v1.2.1