PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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