File: Makefile.in

package info (click to toggle)
mg 20070918-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 664 kB
  • ctags: 892
  • sloc: ansic: 12,205; sh: 148; makefile: 81; modula3: 7
file content (100 lines) | stat: -rw-r--r-- 1,572 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Makefile for mg

# This Makefile has been written by Han Boetes
# <han@mijncomputer.nl> and is released in Public Domain.

# *sigh* Those debian folks are really tidy on their licenses.

name=		mg

prefix=		/usr/local
bindir=		$(prefix)/bin
libdir=		$(prefix)/lib
includedir=	$(prefix)/include
mandir=		$(prefix)/man


CC=		gcc
CFLAGS?=	-O2 -pipe
CFLAGS+=	-g -Wall -Werror
LDFLAGS= 	-lncurses

INSTALL=	/usr/bin/install
STRIP=		/usr/bin/strip


OBJS= 	autoexec.o \
	basic.o \
	buffer.o \
	cinfo.o \
	dir.o \
	dired.o \
	display.o \
	echo.o \
	extend.o \
	file.o \
	fileio.o \
	funmap.o \
	help.o \
	kbd.o \
	keymap.o \
	line.o \
	macro.o \
	main.o \
	match.o \
	modes.o \
	paragraph.o \
	random.o \
	re_search.o \
	region.o \
	search.o \
	spawn.o \
	tty.o \
	ttyio.o \
	ttykbd.o \
	undo.o \
	version.o \
	window.o \
	word.o \
	yank.o

OBJS+=	grep.o theo.o mail.o

# # Portability stuff.
CFLAGS+= 	@extraflags@
OBJS+=		@extraobjs@
LDFLAGS+= 	@extralibs@

.c.o:
	$(CC) $(CFLAGS) -c $<

all: $(name)


$(name): $(OBJS)
	$(CC) $(OBJS) -o $(name) $(LDFLAGS)

distclean: clean
	-rm -f Makefile config.log config.h *~ *.core core.*

clean:
	-rm -f *.o $(name)


install: $(name) $(name).1
	$(INSTALL) -d $(DESTDIR)$(bindir)
	$(INSTALL) -d $(DESTDIR)$(mandir)/man1
	$(INSTALL) -m 755 $(name)		$(DESTDIR)$(bindir)/$(name)
	$(INSTALL) -m 444 $(name).1		$(DESTDIR)$(mandir)/man1/$(name).1

install-strip: install
	$(STRIP) $(DESTDIR)$(bindir)/$(name)

uninstall:
	rm -f \
	$(DESTDIR)$(bindir)/$(name) \
	$(DESTDIR)$(mandir)/man1/$(name).1

rebuild:
	./configure ;\
	make clean all