Debian Codegraph @

perfmon-i7z/Makefile

raw symbols SCIP
1 #ident "$Id: Makefile,v 1.2 2004/07/20 15:54:59 hpa Exp $"
2 ## -----------------------------------------------------------------------
3 ##
4 ## Copyright 2000 Transmeta Corporation - All Rights Reserved
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
9 ## USA; either version 2 of the License, or (at your option) any later
10 ## version; incorporated herein by reference.
11 ##
12 ## -----------------------------------------------------------------------
13
14 #
15 # Makefile for MSRs
16 #
17
18 #makefile updated from patch by anestling
19
20 CFLAGSANY = -g -O0 -fomit-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall
21
22 LBITS := $(shell getconf LONG_BIT)
23 ifeq ($(LBITS),64)
24 CFLAGS = $(CFLAGSANY) -Dx64_BIT
25 else
26 CFLAGS = $(CFLAGSANY) -Dx86
27 endif
28
29 CC = g++
30
31 LDFLAGS = -lncurses -lpthread
32 INCLUDEFLAGS =
33
34 OBJS = helper_functions
35
36 BIN = perfmon-i7z
37 SRC = perfmon-i7z.cpp helper_functions.cpp
38
39 sbindir = /usr/sbin
40
41 all: bin
42
43 bin:
44 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN)
45
46 debug:
47 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEFLAGS) $(SRC) -o $(BIN) -g
48
49 clean:
50 rm -f *.o *~ $(BIN)
51
52 distclean: clean
53 rm -f *~ \#*
54
55 install: all
56 install -m 755 $(BIN) $(sbindir)
57