PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/filesystems/procfs/sequencegrab/Makefile

http://macfuse.googlecode.com/
Makefile | 31 lines | 19 code | 9 blank | 3 comment | 0 complexity | 5b82fe4f7ae67b3d3ba612c66e2ff8d1 MD5 | raw file
 1# Sequence Grabbing Library
 2#
 3# Dave MacLachlan
 4
 5CC = gcc
 6CFLAGS = -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
 7CPPFLAGS = -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
 8LDFLAGS = -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
 9
10OBJECTS = CSGCamera.o CSGImage.o procfs_sequencegrab.o
11
12all: libprocfs_sequencegrab.dylib libprocfs_sequencegrab.a
13
14%o.%m:
15	gcc -c $(CFLAGS) -o $@ $<
16
17CSGCamera.o: CSGCamera.m
18CSGImage.o: CSGImage.m
19
20procfs_sequencegrab.o: procfs_sequencegrab.mm
21	g++ -c $(CPPFLAGS) -o $@ $<
22
23libprocfs_sequencegrab.dylib: $(OBJECTS)
24	g++ -dynamiclib -install_name /tmp/libprocfs_sequencegrab.dylib $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
25
26libprocfs_sequencegrab.a: $(OBJECTS)
27	libtool -static -o libprocfs_sequencegrab.a $(OBJECTS)
28	ranlib libprocfs_sequencegrab.a
29
30clean:
31	rm -f *.o libprocfs_sequencegrab.dylib libprocfs_sequencegrab.a