/filesystems/procfs/Makefile

http://macfuse.googlecode.com/ · Makefile · 50 lines · 28 code · 13 blank · 9 comment · 2 complexity · a7308c9f2a7316e0762014a47c7d7531 MD5 · raw file

  1. # procfs as a MacFUSE file system for Mac OS X
  2. #
  3. # Copyright Amit Singh. All Rights Reserved.
  4. # http://osxbook.com
  5. #
  6. # http://code.google.com/p/macfuse/
  7. CXXFLAGS=-D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
  8. LDFLAGS=-L/usr/local/lib -lfuse -framework Carbon -framework IOKit -framework ApplicationServices -framework Accelerate -framework OpenGL -weak-lproc
  9. SEQUENCEGRAB_LDFLAGS=-framework AudioUnit -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
  10. # Configure this depending on where you installed pcrecpp
  11. # http://www.pcre.org
  12. #
  13. PCRECPP_PREFIX=/usr/local
  14. PCRECPP_CXXFLAGS=-I$(PCRECPP_PREFIX)/include
  15. PCRECPP_LDFLAGS=-arch i386 -arch ppc $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
  16. all: procfs
  17. procfs.o: procfs.cc
  18. g++ -c -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $<
  19. procfs_displays.o: procfs_displays.cc procfs_displays.h
  20. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  21. procfs_proc_info.o: procfs_proc_info.cc procfs_proc_info.h
  22. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  23. procfs_tpm.o: procfs_tpm.cc procfs_tpm.h
  24. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  25. procfs_windows.o: procfs_windows.cc procfs_windows.h
  26. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  27. procfs: procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o sequencegrab/libprocfs_sequencegrab.a
  28. g++ -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $^ $(LDFLAGS) $(PCRECPP_LDFLAGS) sequencegrab/libprocfs_sequencegrab.a $(SEQUENCEGRAB_LDFLAGS)
  29. sequencegrab/libprocfs_sequencegrab.a:
  30. (cd sequencegrab && make)
  31. install: procfs
  32. sudo chown root:wheel procfs
  33. sudo chmod u+s procfs
  34. sudo mv procfs /usr/local/bin/procfs
  35. clean:
  36. rm -f procfs procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o
  37. (cd sequencegrab && make clean)