File: Makefile.in

package info (click to toggle)
procinfo 1:2.0.304-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 468 kB
  • ctags: 163
  • sloc: cpp: 1,633; sh: 153; perl: 84; ansic: 28; makefile: 27
file content (56 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download
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
53
54
55
56
### Makefile for procinfo-ng

prefix=@prefix@

datarootdir = @datarootdir@

mandir= @mandir@

CXX = @CXX@

CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@

#LDLIBS = -levent

### Add to taste:

# CFLAGS  = -g 
# LDFLAGS = -g

# CFLAGS += -DPROC_DIR=\"extra2/\"

# CFLAGS += -DDEBUG
# LDLIBS += -ldmalloc

# CFLAGS += -pg
# LDFLAGS = -pg

### End of configurable options.

all:	procinfo

clean:
	rm -f procinfo procinfo.exe procinfo.0 *.o *~ out config.*

distclean:
	rm -f procinfo procinfo.exe procinfo.0 *.o *~ out config.* Makefile

.PHONY: clean all

procinfo: procinfo.cpp \
interrupts.cpp diskStats.cpp rendercpupagestat.cpp getmeminfo.cpp \
linux26_procstat.cpp linux26_rendercpupagestat.cpp linux26_netstat.cpp \
cygwin_procstat.cpp cygwin_rendercpupagestat.cpp \
lib/routines.cpp lib/timeRoutines.cpp lib/prettyPrint.cpp \
Makefile
	$(CXX) $(CFLAGS) $(CPPFLAGS) procinfo.cpp $(LDFLAGS) -o $@

#procinfo.o: procinfo.cpp procinfo.h
#	$(XX) $(CFLAGS) procinfo.cpp -o procinfo.o

install: procinfo procinfo.8
	-mkdir -p $(DESTDIR)/$(prefix)/bin
	install procinfo $(DESTDIR)/$(prefix)/bin/procinfo
	-mkdir -p $(DESTDIR)/$(mandir)/man8
	install -m 644  procinfo.8 $(DESTDIR)/$(mandir)/man8/procinfo.8