File: Makefile.in

package info (click to toggle)
rxvt 1%3A2.4.5-16
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,128 kB
  • ctags: 1,296
  • sloc: ansic: 12,852; makefile: 521; sh: 411
file content (111 lines) | stat: -rw-r--r-- 3,233 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
101
102
103
104
105
106
107
108
109
110
111
# src/Makefile.in	-*- Makefile -*-
#@MCOMMON@

srcdir = @srcdir@
VPATH = @srcdir@

basedir = ..
thisdir = src

# for developers: the following debug options may be used
#	-DDEBUG_CMD -DDEBUG_MENU -DDEBUG_MENUARROWS -DDEBUG_MENUBAR_STACKING
#	-DDEBUG_MENU_LAYOUT -DDEBUG_RESOURCES -DDEBUG_SCREEN
#	-DDEBUG_SEARCH_PATH -DDEBUG_SELECT -DDEBUG_SELECTION -DDEBUG_TTYMODE
#	-DDEBUG_X
DEBUG=

first_rule: all
dummy:

SRCS =	command.c graphics.c grkelot.c main.c menubar.c misc.c \
	netdisp.c rmemset.c screen.c scrollbar.c utmp.c xdefaults.c \
	cli_xcin.c

OBJS =	command.o graphics.o grkelot.o main.o menubar.o misc.o \
	netdisp.o rmemset.o screen.o scrollbar.o utmp.o xdefaults.o

HDRS =	feature.h protos.h grkelot.h rxvt.h rxvtgrx.h version.h \
	state.h protocol.h

PROS =	command.pro graphics.pro grkelot.pro main.pro menubar.pro misc.pro \
	netdisp.pro rmemset.pro screen.pro scrollbar.pro utmp.pro xdefaults.pro 

DEPS =  rxvt.h version.h ${basedir}/config.h feature.h

#
# Distribution variables
#

DIST = $(HDRS) $(SRCS) $(PROS) Makefile.in gcc-Wall .indent.pro makeprotos-sed

.SUFFIXES: .c .o .pro

# inference rules
.c.o:
	$(CC) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(XINC)  -I. -I$(basedir) -I$(srcdir) $(DINCLUDE) $(CFLAGS) $<
#-------------------------------------------------------------------------
all: rxvt

rxvt: version.h $(PROS) $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(XLIB) $(DLIB)

crxvt: version.h $(PROS) $(OBJS) cli_xcin.o
	$(CC) $(LDFLAGS) -o $@ $(OBJS) cli_xcin.o $(LIBS) $(XLIB) $(DLIB)

.c.pro:
	$(SED) -n -f $(srcdir)/makeprotos-sed $< > $@

tags: $(SRCS)
	ctags $(SRCS)

allbin: rxvt

alldoc:

clean:
	$(RMF) rxvt core a.out $(OBJS) cli_xcin.o *.bak *~

realclean: clean
	$(RMF) tags *.pro

distclean: realclean
	if test $(srcdir) = .; then $(MAKE) realclean; fi
	(cd $(srcdir); $(RMF) Makefile)

install: allbin alldoc
	$(INSTALL_PROGRAM) rxvt $(DESTDIR)$(bindir)/$(binprefix)rxvt

uninstall:
	(cd $(bindir); $(RMF) $(binprefix)rxvt)

distdirs:
	mkdir $(basedir)/../$(VERNAME)/$(thisdir)

distcopy:
	$(CP) $(DIST) $(basedir)/../$(VERNAME)/$(thisdir)

# Semi-automatic generation of dependencies:
# Use gcc -MM because X11 `makedepend' doesn't work on all systems
# and it also includes system headers.
# `semi'-automatic since dependencies are generated at distribution time.

#distdepend:
#	mv Makefile.in Makefile.in~
#	sed "/^# DO NOT DELETE:/,$$ d" Makefile.in~ > Makefile.in
#	echo "# DO NOT DELETE: ugly dependency list follows" >> Makefile.in
#	gcc -MM $(CPPFLAGS) $(XINC) -I. -I$(basedir) -I$(srcdir) $(SRCS) >> Makefile.in

# -----------------------------------------------------------------------
# DO NOT DELETE: nice dependency list follows
command.o:   command.c   command.pro   $(DEPS)
graphics.o:  graphics.c  graphics.pro  $(DEPS)
grkelot.o:   grkelot.c   grkelot.pro   $(DEPS)
main.o:      main.c      main.pro      $(DEPS)
menubar.o:   menubar.c   menubar.pro   $(DEPS)
misc.o:      misc.c      misc.pro      $(DEPS)
netdisp.o:   netdisp.c   netdisp.pro   $(DEPS)
screen.o:    screen.c    screen.pro    $(DEPS)
scrollbar.o: scrollbar.c scrollbar.pro $(DEPS)
utmp.o:      utmp.c      utmp.pro      $(DEPS)
xdefaults.o: xdefaults.c xdefaults.pro $(DEPS)
cli_xcin.o:  cli_xcin.c $(DEPS)