/filesystems/grabfs/Makefile

http://macfuse.googlecode.com/ · Makefile · 39 lines · 20 code · 10 blank · 9 comment · 0 complexity · f7d1aeee69b22aa864514b262758b707 MD5 · raw file

  1. # windowfs 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
  9. # Configure this depending on where you installed pcrecpp
  10. # http://www.pcre.org
  11. #
  12. PCRECPP_PREFIX=/usr/local
  13. PCRECPP_CXXFLAGS=-I$(PCRECPP_PREFIX)/include
  14. PCRECPP_LDFLAGS=-arch i386 $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
  15. all: windowfs
  16. GetPID.o: GetPID.c
  17. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  18. windowfs.o: windowfs.cc
  19. g++ -c -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $<
  20. windowfs_windows.o: windowfs_windows.cc windowfs_windows.h
  21. g++ -c -Wall $(CXXFLAGS) -o $@ $<
  22. windowfs: windowfs.o windowfs_windows.o GetPID.o
  23. g++ -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $^ $(LDFLAGS) $(PCRECPP_LDFLAGS)
  24. install: windowfs
  25. sudo chown root:wheel windowfs
  26. sudo chmod u+s windowfs
  27. sudo mv windowfs /usr/local/bin/windowfs
  28. clean:
  29. rm -f windowfs GetPID.o windowfs.o windowfs_windows.o