/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. CC = gcc
  5. CFLAGS = -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
  6. CPPFLAGS = -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
  7. LDFLAGS = -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
  8. OBJECTS = CSGCamera.o CSGImage.o procfs_sequencegrab.o
  9. all: libprocfs_sequencegrab.dylib libprocfs_sequencegrab.a
  10. %o.%m:
  11. gcc -c $(CFLAGS) -o $@ $<
  12. CSGCamera.o: CSGCamera.m
  13. CSGImage.o: CSGImage.m
  14. procfs_sequencegrab.o: procfs_sequencegrab.mm
  15. g++ -c $(CPPFLAGS) -o $@ $<
  16. libprocfs_sequencegrab.dylib: $(OBJECTS)
  17. g++ -dynamiclib -install_name /tmp/libprocfs_sequencegrab.dylib $(CFLAGS) -o $@ $(OBJECTS) $(LDFLAGS)
  18. libprocfs_sequencegrab.a: $(OBJECTS)
  19. libtool -static -o libprocfs_sequencegrab.a $(OBJECTS)
  20. ranlib libprocfs_sequencegrab.a
  21. clean:
  22. rm -f *.o libprocfs_sequencegrab.dylib libprocfs_sequencegrab.a