1 |
unnilennium |
1.1 |
--- cpuspeed-1.5/Makefile 2008-10-08 15:00:12.000000000 -0400 |
2 |
|
|
+++ cpuspeed-1.5/Makefile.rh 2008-10-08 18:54:03.000000000 -0400 |
3 |
|
|
@@ -1,5 +1,8 @@ |
4 |
|
|
-CC=gcc -Wall -fno-exceptions |
5 |
|
|
+CC=gcc |
6 |
|
|
+CFLAGS=-Wall -fno-exceptions |
7 |
|
|
COPTS=-Os |
8 |
|
|
+LDFLAGS= |
9 |
|
|
+SBINDIR=/usr/sbin |
10 |
|
|
|
11 |
|
|
TARGET=cpuspeed |
12 |
|
|
DEBUG_TARGET=cpuspeed-debug |
13 |
|
|
@@ -9,16 +12,16 @@ debug: $(DEBUG_TARGET) |
14 |
|
|
fake: $(FAKE_TARGET) |
15 |
|
|
|
16 |
|
|
$(TARGET): cpuspeed.cc |
17 |
|
|
- $(CC) -c $(COPTS) cpuspeed.cc |
18 |
|
|
- $(CC) cpuspeed.o -o $(TARGET) |
19 |
|
|
- strip $(TARGET) |
20 |
|
|
+ $(CC) $(CFLAGS) -c $(COPTS) cpuspeed.cc |
21 |
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) cpuspeed.o -o $(TARGET) |
22 |
|
|
|
23 |
|
|
# Debug target |
24 |
|
|
$(DEBUG_TARGET): cpuspeed.cc |
25 |
|
|
$(CC) -c -g -DDEBUG -o cpuspeed_debug.o cpuspeed.cc |
26 |
|
|
$(CC) cpuspeed_debug.o -o $(DEBUG_TARGET) |
27 |
|
|
|
28 |
|
|
-install: install_redhat |
29 |
|
|
+install: $(TARGET) |
30 |
|
|
+ install -m755 $(TARGET) $(DESTDIR)/$(SBINDIR)/ |
31 |
|
|
|
32 |
|
|
install_redhat: $(TARGET) |
33 |
|
|
cp -f $(TARGET) /sbin |