"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "gmemusage-0.2/Makefile" of archive gmemusage-0.2.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 #
2 # Makefile for gmemusage-0.2
3 #
4 # User-settable options
5 # Define BELL_ON_UNKNOWN_KEYPRESS to have gmemusage beep whenever an unknown
6 # key (including modifiers) is pressed.
7 #
8 # BELL_ON_UNKNOWN_KEYPRESS = -DBELL_ON_UNKNOWN_KEYPRESS
9 #
10 # Define USE_PASTELS to have gmemusage use pastel colors instead of the
11 # default red, green, blue for it's stack.
12 #
13 USE_PASTELS = -DPASTEL_COLORS
14 #
15 # Define this for freeing the double-buffer pixmap after each draw_window()
16 #
17 SAVE_XSERVER_MEMORY = -DSAVE_XSERVER_MEMORY
18 #
19 # Change these variables as necessary
20 #
21 CC = gcc
22 OPTIM = -O2 # change to -g for debugging
23 LIBX11DIR = -L /usr/X11R6/lib
24 PREFIX = /usr/local
25 #
26 # You shouldn't need to modify anything below this line
27 #
28 OPTIONS = $(BELL_ON_UNKNOWN_KEYPRESS) $(USE_PASTELS) $(SAVE_XSERVER_MEMORY)
29 CFLAGS = $(OPTIM) -Wall $(OPTIONS)
30 LDFLAGS = $(OPTIM)
31 LIBX11 = $(LIBX11DIR) -lX11
32 LIBS = $(LIBX11)
33 BINDIR = $(PREFIX)/bin
34 MANDIR = $(PREFIX)/man/man1
35
36 OBJS = gmemusage.o hash.o proc.o resource.o
37
38 gmemusage: $(OBJS)
39 $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBX11)
40
41 gmemusage.o: gmemusage.c memusage.xbm common.h defaults.h
42
43 resource.o: resource.c defaults.h common.h
44
45 proc.o: proc.c common.h
46
47 hash.o: hash.c common.h
48
49 proctest: proctest.o hash.o
50 $(CC) $(LDFLAGS) -o $@ proctest.o hash.o
51
52 proctest.o: proc.c common.h
53 $(CC) $(CFLAGS) -DDEBUG -o proctest.o -c proc.c
54
55 install: gmemusage
56 install -m 0755 -o bin -g bin gmemusage $(BINDIR)/gmemusage
57 install -m 0644 -o bin -g bin gmemusage.1 $(MANDIR)/gmemusage.1
58
59 clean:
60 rm -f *.o \#* *~ *.orig x proctest gmemusage core