-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
52 lines (38 loc) · 1.81 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# procfs as a OSXFUSE file system for Mac OS X
#
# Copyright 2007 Amit Singh (osxbook.com). All Rights Reserved.
CC ?= gcc
CXX ?= g++
CFLAGS_OSXFUSE=-D_FILE_OFFSET_BITS=64 -Wall -O -I/usr/local/include/osxfuse -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CFLAGS :=$(CFLAGS_OSXFUSE) $(CFLAGS)
CXXFLAGS:=$(CFLAGS_OSXFUSE) $(CXXFLAGS)
LDFLAGS=-L/usr/local/lib -losxfuse -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=$(shell pcre-config --prefix)
PCRECPP_CXXFLAGS=-I$(PCRECPP_PREFIX)/include
PCRECPP_LDFLAGS=-arch x86_64 $(PCRECPP_PREFIX)/lib/libpcrecpp.a $(PCRECPP_PREFIX)/lib/libpcre.a
all: procfs
procfs.o: procfs.cc
$(CXX) -c $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $<
procfs_displays.o: procfs_displays.cc procfs_displays.h
$(CXX) -c $(CXXFLAGS) -o $@ $<
procfs_proc_info.o: procfs_proc_info.cc procfs_proc_info.h
$(CXX) -c $(CXXFLAGS) -o $@ $<
procfs_tpm.o: procfs_tpm.cc procfs_tpm.h
$(CXX) -c $(CXXFLAGS) -o $@ $<
procfs_windows.o: procfs_windows.cc procfs_windows.h
$(CXX) -c $(CXXFLAGS) -o $@ $<
procfs: procfs.o procfs_displays.o procfs_proc_info.o procfs_tpm.o procfs_windows.o
$(CXX) $(CXXFLAGS) $(PCRECPP_CXXFLAGS) -o $@ $^ $(LDFLAGS) $(PCRECPP_LDFLAGS)
sequencegrab/libprocfs_sequencegrab.a:
$(MAKE) -C sequencegrab
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
$(MAKE) -C sequencegrab clean