File: 20_makefile.patch

package info (click to toggle)
gmemusage 0.2-11
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 148 kB
  • ctags: 121
  • sloc: ansic: 1,321; perl: 67; makefile: 33
file content (27 lines) | stat: -rw-r--r-- 826 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
--- Makefile.orig	2008-11-28 18:37:30.000000000 +0100
+++ Makefile	2008-11-28 18:38:01.000000000 +0100
@@ -19,15 +19,12 @@
 # Change these variables as necessary
 #
 CC = gcc
-OPTIM = -O2	# change to -g for debugging
 LIBX11DIR = -L /usr/X11R6/lib
 PREFIX = /usr/local
 #
 # You shouldn't need to modify anything below this line
 #
 OPTIONS = $(BELL_ON_UNKNOWN_KEYPRESS) $(USE_PASTELS) $(SAVE_XSERVER_MEMORY)
-CFLAGS = $(OPTIM) -Wall $(OPTIONS) -g
-LDFLAGS = $(OPTIM)
 LIBX11 = $(LIBX11DIR) -lX11
 LIBS = $(LIBX11)
 BINDIR = $(PREFIX)/bin
@@ -50,7 +47,7 @@
 	$(CC) $(LDFLAGS) -o $@ proctest.o hash.o
 
 proctest.o:	proc.c common.h
-	$(CC) $(CFLAGS) -DDEBUG -o proctest.o -c proc.c
+	$(CC) $(CFLAGS) $(OPTIONS) -DDEBUG -o proctest.o -c proc.c
 
 install:	gmemusage
 	install -m 0755 -o bin -g bin gmemusage $(BINDIR)/gmemusage