/filesystems/procfs/Makefile
http://macfuse.googlecode.com/ · Makefile · 50 lines · 28 code · 13 blank · 9 comment · 2 complexity · a7308c9f2a7316e0762014a47c7d7531 MD5 · raw file
- # procfs as a MacFUSE file system for Mac OS X
- #
- # Copyright Amit Singh. All Rights Reserved.
- # http://osxbook.com
- #
- # http://code.google.com/p/macfuse/
- CXXFLAGS=-D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
- LDFLAGS=-L/usr/local/lib -lfuse -framework Carbon -framework IOKit -framework ApplicationServices -framework Accelerate -framework OpenGL -weak-lproc
- SEQUENCEGRAB_LDFLAGS=-framework AudioUnit -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
- # Configure this depending on where you installed pcrecpp
- # http://www.pcre.org
- #
- PCRECPP_PREFIX=/usr/local
- PCRECPP_CXXFLAGS=-I$(PCRECPP_PREFIX)/include
- PCRECPP_LDFLAGS=-arch i386 -arch ppc $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
- all: procfs
- procfs.o: procfs.cc
- g++ -c -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $<
- procfs_displays.o: procfs_displays.cc procfs_displays.h
- g++ -c -Wall $(CXXFLAGS) -o $@ $<
- procfs_proc_info.o: procfs_proc_info.cc procfs_proc_info.h
- g++ -c -Wall $(CXXFLAGS) -o $@ $<
- procfs_tpm.o: procfs_tpm.cc procfs_tpm.h
- g++ -c -Wall $(CXXFLAGS) -o $@ $<
- procfs_windows.o: procfs_windows.cc procfs_windows.h
- g++ -c -Wall $(CXXFLAGS) -o $@ $<
- procfs: procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o sequencegrab/libprocfs_sequencegrab.a
- g++ -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $^ $(LDFLAGS) $(PCRECPP_LDFLAGS) sequencegrab/libprocfs_sequencegrab.a $(SEQUENCEGRAB_LDFLAGS)
- sequencegrab/libprocfs_sequencegrab.a:
- (cd sequencegrab && make)
- install: procfs
- sudo chown root:wheel procfs
- sudo chmod u+s procfs
- sudo mv procfs /usr/local/bin/procfs
- clean:
- rm -f procfs procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o
- (cd sequencegrab && make clean)