PageRenderTime 19ms CodeModel.GetById 11ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 8CXXFLAGS=-D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
 9LDFLAGS=-L/usr/local/lib -lfuse -framework Carbon -framework IOKit -framework ApplicationServices -framework Accelerate -framework OpenGL -weak-lproc
10SEQUENCEGRAB_LDFLAGS=-framework AudioUnit -framework Cocoa -framework CoreAudioKit -framework Foundation -framework QuartzCore -framework QuickTime -framework QuartzCore
11
12# Configure this depending on where you installed pcrecpp
13# http://www.pcre.org
14#
15PCRECPP_PREFIX=/usr/local
16
17PCRECPP_CXXFLAGS=-I$(PCRECPP_PREFIX)/include
18PCRECPP_LDFLAGS=-arch i386 -arch ppc $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
19
20all: procfs
21
22procfs.o: procfs.cc
23	g++ -c -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $<
24
25procfs_displays.o: procfs_displays.cc procfs_displays.h
26	g++ -c -Wall $(CXXFLAGS) -o $@ $<
27
28procfs_proc_info.o: procfs_proc_info.cc procfs_proc_info.h
29	g++ -c -Wall $(CXXFLAGS) -o $@ $<
30
31procfs_tpm.o: procfs_tpm.cc procfs_tpm.h
32	g++ -c -Wall $(CXXFLAGS) -o $@ $<
33
34procfs_windows.o: procfs_windows.cc procfs_windows.h
35	g++ -c -Wall $(CXXFLAGS) -o $@ $<
36
37procfs: procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o sequencegrab/libprocfs_sequencegrab.a
38	g++ -Wall $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $^ $(LDFLAGS) $(PCRECPP_LDFLAGS) sequencegrab/libprocfs_sequencegrab.a $(SEQUENCEGRAB_LDFLAGS)
39
40sequencegrab/libprocfs_sequencegrab.a:
41	(cd sequencegrab && make)
42
43install: procfs
44	sudo chown root:wheel procfs
45	sudo chmod u+s procfs
46	sudo mv procfs /usr/local/bin/procfs
47
48clean:
49	rm -f procfs procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o
50	(cd sequencegrab && make clean)