diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:11:05 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-10-25 04:11:05 +0000 |
commit | 029f0be8e4beea787feb984b2797f6e23f7964ac (patch) | |
tree | 40c321591bff2952a908926e0006c581deb563af /Makefile | |
parent | e95cc04a85be1ef67d9be53a8bb2cc05b1633231 (diff) |
first version of object for private MultitouchSupport framework based on code from steide and fingerpinger
svn path=/trunk/externals/apple/; revision=12669
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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) |