wmcube: imported Upstream version 0.99-pre1
[dockapps.git] / wmcube / cpumoncc / netbsd / Makefile
blobccc3b9349ea0b412db34c726b1ba22ad6e1fc38d
1 ######################################################
3 # To compile cpumoncc for a different OS/architecture you
4 # will need to modify the variablese below to match your system.
6 # For system wide installation type (as root):
8 # make install
10 # This will install the static library in $(LIBINSTALL) and
11 # the header files in $(HINSTALL)/cpumoncc.
13 #####################################################
15 CXX=g++
16 CXXFLAGS=
17 HINSTALL=/usr/include
18 LIBINSTALL=/usr/lib
20 #####################################################
22 TARGET=libcpumoncc.a
24 $(TARGET): CpuMonitor.o
25 ar rcs $(TARGET) $^
27 CpuMonitor.o: copy_base
29 copy_base:
30 cp ../base/BaseCpuMonitor.h .
32 install: $(TARGET)
33 mkdir -p $(HINSTALL)/cpumoncc
34 cp *.h $(HINSTALL)/cpumoncc
35 install -m 644 $(TARGET) $(LIBINSTALL)
37 clean:
38 rm -f *~ core *.o cpu $(TARGET) BaseCpuMonitor.h
39 rm -fr $(HINSTALL)/cpumoncc
40 rm -f $(LIBINSTALL)/$(TARGET)