File: Makefile

package info (click to toggle)
glcpu 1.0.1-6.3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 140 kB
  • ctags: 64
  • sloc: cpp: 593; makefile: 77; sh: 16
file content (43 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download | duplicates (2)
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
#  $Id: Makefile,v 1.19 2000/10/25 21:26:03 jb Exp $

OBJSMAIN = main.o parser.o config.o
OBJSSTATD = statd.o cpu.o
CCFLAGS = $(CFLAGS)
CCFLAGS += -D_GNU_SOURCE -ansi -Wall -DOS_$(shell uname) -I/usr/X11R6/include
CCFLAGS += -I$(shell ccgnu2-config --includes)
# CommonC++ headers fail -pedantic checking
LIBS =
DLIBS = -lccgnu2 -lglut
SLIBS = -ldl /usr/lib/libccgnu.a /usr/lib/libpthread.a /usr/lib/libglut.a /usr/lib/libGL.a /usr/lib/libGLU.a
PREFIX = /usr/local

all: glcpu statd

static: glcpu-static

.cc.o:
	g++ ${CCFLAGS} -c $<

glcpu: ${OBJSMAIN}
	g++ ${OBJSMAIN} ${LIBS} ${DLIBS} -o glcpu

glcpu-static: ${OBJSMAIN}
	g++ ${OBJSMAIN} ${LIBS} ${SLIBS} -s -o glcpu-static

statd: ${OBJSSTATD}
	g++ ${OBJSSTATD} -o statd

clean:
	rm -f build
	rm -f *.o glcpu *~ \#* statd glcpu-static

install: install-glcpu install-statd

install-glcpu: glcpu
	install -d -o root -g root ${PREFIX}/bin
	install -m 755 -o root -g root glcpu ${PREFIX}/bin

install-statd: statd
	install -d -o root -g root ${PREFIX}/sbin
	install -m 755 -o root -g root statd ${PREFIX}/sbin