File: Makefile.in

package info (click to toggle)
xwrits 2.6.1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 400 kB
  • ctags: 523
  • sloc: ansic: 3,377; sh: 152; makefile: 114
file content (101 lines) | stat: -rw-r--r-- 2,927 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
PACKAGE		= xwrits
VERSION		= @VERSION@

.SUFFIXES:
.SUFFIXES: .c .o

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

SHELL		= /bin/sh
prefix		= @prefix@
exec_prefix	= @exec_prefix@
VPATH		= @srcdir@
srcdir		= @srcdir@
bindir		= @bindir@
mandir		= @mandir@/man$(manext)
manext		= 1

CC		= @CC@ $(PROFILING)
CCLINKER	= @CC@ $(PROFILING)
CFLAGS		= @CFLAGS@
CPPFLAGS	= @X_CFLAGS@ @DEFS@
PROFILING	= 
LDFLAGS		= @LDFLAGS@
LIBS		= @X_LIBS@ @X_PRE_LIBS@ -lX11 -lm @X_EXTRA_LIBS@
RM		= /bin/rm -f
MV		= /bin/mv

INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@

PROGRAMS	= xwrits
OBJS		= giffunc.o gifread.o gifx.o pictures.o schedule.o warning.o \
		rest.o lock.o clock.o main.o

all: $(PROGRAMS)

xwrits: $(OBJS)
	$(CCLINKER) $(CFLAGS) -o xwrits $(OBJS) $(LDFLAGS) $(LIBS)

install: $(PROGRAMS)
	$(INSTALL_PROGRAM) xwrits $(bindir)/xwrits
	$(INSTALL_DATA) xwrits.man $(mandir)/xwrits.$(manext)

main.o: main.c defaults.h
	$(CC) $(CPPFLAGS) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $<

#####
# Making pictures

pictures.o: pictures.c color/gifs.c mono/gifs.c
giftoc: giftoc.c
	$(CC) $(CFLAGS) -o giftoc giftoc.c

COLOR_PIX = color/bars.gif color/lock.gif \
	color/clenchl.gif color/spreadl.gif color/fingerl.gif color/restl.gif \
	color/okl.gif color/clenchi.gif color/spreadi.gif color/fingeri.gif \
	color/resti.gif color/oki.gif
MONO_PIX = mono/barsm.gif mono/lockm.gif \
	mono/clenchlm.gif mono/spreadlm.gif mono/fingerlm.gif mono/restlm.gif \
	mono/oklm.gif mono/clenchim.gif mono/spreadim.gif mono/fingerim.gif \
	mono/restim.gif mono/okim.gif

color/gifs.c: giftoc $(COLOR_PIX)
	cd color ; ../giftoc -makename bars.gif lock.gif \
	clenchl.gif spreadl.gif fingerl.gif restl.gif okl.gif \
	clenchi.gif spreadi.gif fingeri.gif resti.gif oki.gif > gifs.c
mono/gifs.c: giftoc $(MONO_PIX)
	cd mono ; ../giftoc -makename barsm.gif lockm.gif \
	clenchlm.gif spreadlm.gif fingerlm.gif restlm.gif oklm.gif \
	clenchim.gif spreadim.gif fingerim.gif restim.gif okim.gif > gifs.c

srclinks:
	for i in gif.h.in giffunc.c gifread.c giftoc.c gifx.h gifx.c ; do \
	ln -s ../giflib/$$i $$i ; done

#####
# Cleaning and distribution

clean:
	rm -f $(PROGRAMS) *.o giftoc color/gifs.c mono/gifs.c core *.core
mostlyclean: clean
distclean: mostlyclean
	rm -f Makefile config.status config.log config.cache
realclean: distclean

dist:
	rm -rf $(PACKAGE)-$(VERSION)
	mkdir -m 0777 $(PACKAGE)-$(VERSION)
	cp Makefile.in README NEWS INSTALL configure configure.in install-sh \
	gif.h.in giffunc.c gifread.c gifx.h gifx.c giftoc.c \
	defaults.h xwrits.h xwrits.man \
	pictures.c clock.c lock.c rest.c schedule.c warning.c rest.c main.c \
	$(PACKAGE)-$(VERSION)
	mkdir -m 0777 $(PACKAGE)-$(VERSION)/color
	cp $(COLOR_PIX) $(PACKAGE)-$(VERSION)/color
	mkdir -m 0777 $(PACKAGE)-$(VERSION)/mono
	cp $(MONO_PIX) $(PACKAGE)-$(VERSION)/mono
	gtar czf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
	rm -r $(PACKAGE)-$(VERSION)