Skip to content
This repository
Newer
Older
100644 141 lines (99 sloc) 4.038 kb
9f0cff13 »
2010-07-26 Initial commit.
1 # Makefile for quIRC
2
49d80e3e »
2012-07-13 Makefile: Fix OPTFLAGS & OPTLIBS by using deferred evaluation
3 CC ?= gcc
b7319a8d »
2012-01-11 Asynch name lookups
4 OPTFLAGS := -g
49d80e3e »
2012-07-13 Makefile: Fix OPTFLAGS & OPTLIBS by using deferred evaluation
5 CFLAGS = -Wall -Wextra -Werror -pedantic -std=gnu99 -D_GNU_SOURCE $(OPTFLAGS)
b7319a8d »
2012-01-11 Asynch name lookups
6 AWK := gawk
4a2bd9bd »
2010-07-27 Fixed bugs in 'make dist'
7 VERSION := `git describe --tags`
b7319a8d »
2012-01-11 Asynch name lookups
8 PREFIX := /usr/local
8f02e016 »
2012-07-10 Better handling of osconf (config.mak, etc.)
9 LIBS_ASYNCH_NL := -lanl
10 OPTLIBS = $(LIBS_ASYNCH_NL)
49d80e3e »
2012-07-13 Makefile: Fix OPTFLAGS & OPTLIBS by using deferred evaluation
11 LIBS = -lm -lncurses $(OBJS) $(OPTLIBS)
12 OBJS := ttyraw.o ttyesc.o irc.o bits.o strbuf.o colour.o buffer.o names.o config.o input.o logging.o types.o
13 INCLUDE := $(OBJS:.o=.h) quirc.h version.h osconf.h
9f0cff13 »
2010-07-26 Initial commit.
14
8f02e016 »
2012-07-10 Better handling of osconf (config.mak, etc.)
15 -include config.mak
16
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
17 all: quirc doc
9f0cff13 »
2010-07-26 Initial commit.
18
d0f7f76f »
2012-06-14 Man page with pointers to full documentation
19 install: all doc
7fbe18a8 »
2011-07-05 Makefile fixes (should fix gitlessing tarballs) & some plans
20 install -D -m0755 quirc $(PREFIX)/bin/quirc
d0f7f76f »
2012-06-14 Man page with pointers to full documentation
21 install -D -m0644 quirc.1 $(PREFIX)/man/man1/quirc.1
22 install -D -m0644 readme.htm $(PREFIX)/share/doc/quirc/readme.htm
23 install -D -m0644 config_ref.htm $(PREFIX)/share/doc/quirc/config_ref.htm
24 install -D -m0644 tutorial.htm $(PREFIX)/share/doc/quirc/tutorial.htm
1bf0755d »
2010-07-27 'make install' rule
25
40502626 »
2010-08-16 Use a post-commit hook to update version.h (with the Makefile)
26 uninstall:
f338eb76 »
2012-06-14 Update 'make uninstall' to remove the documentation too
27 -rm $(PREFIX)/bin/quirc
28 -rm $(PREFIX)/man/man1/quirc.1
29 -rm $(PREFIX)/share/doc/quirc/readme.htm
30 -rm $(PREFIX)/share/doc/quirc/config_ref.htm
31 -rm $(PREFIX)/share/doc/quirc/tutorial.htm
40502626 »
2010-08-16 Use a post-commit hook to update version.h (with the Makefile)
32
49d80e3e »
2012-07-13 Makefile: Fix OPTFLAGS & OPTLIBS by using deferred evaluation
33 quirc: quirc.c $(OBJS) $(INCLUDE)
34 $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LIBS) $(DEFINES)
68d1b71d »
2010-09-10 Use mcheck.h for memory profiling
35
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
36 quirc.h: config.h version.h
37 touch quirc.h
38
40502626 »
2010-08-16 Use a post-commit hook to update version.h (with the Makefile)
39 clean:
6ecd2ce3 »
2012-07-10 Makefile: use -f on rm in [real]clean rules
40 -rm -f *.o quirc genconfig genkeymap
40502626 »
2010-08-16 Use a post-commit hook to update version.h (with the Makefile)
41
42 realclean: clean
6ecd2ce3 »
2012-07-10 Makefile: use -f on rm in [real]clean rules
43 -rm -f c_init.c README version.h config_* keymap.c keymod.h quirc.1
40502626 »
2010-08-16 Use a post-commit hook to update version.h (with the Makefile)
44
d0f7f76f »
2012-06-14 Man page with pointers to full documentation
45 doc: README config_ref.htm quirc.1
6b0feffd »
2010-08-16 Canonical readme in HTML format; makerule to generate plain text
46
47 README: readme.htm
e2c3e47b »
2011-04-06 Fix generation of README (&apos; and &quot;)
48 -sed -e "s/&apos;/'/g" -e "s/&quot;/\"/g" < readme.htm | html2text -nobs -o README
6b0feffd »
2010-08-16 Canonical readme in HTML format; makerule to generate plain text
49
d0f7f76f »
2012-06-14 Man page with pointers to full documentation
50 # warning, this explodes if PREFIX contains a !
51 quirc.1: man.in
5ffc2880 »
2012-06-14 make doc: put a warning in quirc.1 to say that it's generated from ma…
52 echo ".\\\"\n.\\\"This man page is automatically generated from man.in by a sedscript; edit man.in, not this file, and 'make doc' to apply the changes.">quirc.1
53 sed -e "s!\$$PREFIX!$(PREFIX)!g" < man.in >> quirc.1
d0f7f76f »
2012-06-14 Man page with pointers to full documentation
54
c4086458 »
2010-08-15 Make the Makefile more clever (pattern rules for the object files)
55 # funky make cleverness to generate object files; a %.o /always/ depends on its %.h as well as its %.c
9f0cff13 »
2010-07-26 Initial commit.
56
c4086458 »
2010-08-15 Make the Makefile more clever (pattern rules for the object files)
57 %.o: %.c %.h
eb63d038 »
2010-09-15 --debug option, and debugging mode
58 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ $(DEFINES)
9f0cff13 »
2010-07-26 Initial commit.
59
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
60 ttyesc.o: ttyesc.c ttyesc.h bits.h
61
b7319a8d »
2012-01-11 Asynch name lookups
62 irc.o: irc.c irc.h bits.h buffer.h colour.h names.h numeric.h osconf.h
2b3007c2 »
2010-08-21 Highlight escape sequences in input line
63
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
64 irc.h: config.h
65 touch irc.h
9f0cff13 »
2010-07-26 Initial commit.
66
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
67 bits.o: bits.c bits.h ttyesc.h colour.h
68
ebc74a9d »
2012-07-09 Refactored string buffers to new strbuf.h, shared with the gen* progs.
69 bits.h: config.h strbuf.h
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
70 touch bits.h
709dc6b3 »
2010-07-27 Various improvements eg rc file (.quirc)
71
fcf94957 »
2010-08-15 Refactored .quirc and cmdline parsing; other refactoring
72 colour.o: colour.c colour.h c_init.c ttyesc.h
15e41365 »
2010-07-27 Automatic version-number generation from git describe
73
8c8b00d3 »
2012-06-14 Logging
74 buffer.o: buffer.c buffer.h ttyesc.h colour.h bits.h names.h text.h irc.h version.h input.h logging.h
a886cb22 »
2010-08-14 Moved name-list handling out to new files 'names.*'
75
8c8b00d3 »
2012-06-14 Logging
76 buffer.h: config.h version.h logging.h
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
77 touch buffer.h
de4ae608 »
2011-04-06 config: generate much of the config code from a concise descriptions …
78
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
79 config.o: config.c config.h names.h bits.h colour.h text.h version.h
de4ae608 »
2011-04-06 config: generate much of the config code from a concise descriptions …
80
62617ffc »
2011-07-05 Configurable keymapping
81 config.c: config_check.c config_def.c config_need.c config_rcread.c config_pargs.c config_help.c keymap.c
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
82 touch config.c
83
62617ffc »
2011-07-05 Configurable keymapping
84 config.h: config_globals.h version.h keymod.h
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
85 touch config.h
86
87 config_%: config.cdl genconfig
de4ae608 »
2011-04-06 config: generate much of the config code from a concise descriptions …
88 ./genconfig $@ < config.cdl > $@ || (rm $@ && false)
89
ebc74a9d »
2012-07-09 Refactored string buffers to new strbuf.h, shared with the gen* progs.
90 genconfig: genconfig.c strbuf.h strbuf.o
91 $(CC) $(CFLAGS) $(CPPFLAGS) $< $(LDFLAGS) strbuf.o -o $@
fcf94957 »
2010-08-15 Refactored .quirc and cmdline parsing; other refactoring
92
62617ffc »
2011-07-05 Configurable keymapping
93 input.h: keymod.h
94 touch input.h
95
8c8b00d3 »
2012-06-14 Logging
96 input.o: input.c input.h ttyesc.h names.h buffer.h irc.h bits.h config.h logging.h
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
97
98 input.c: config_set.c
99 touch input.c
861788ef »
2010-08-15 More refactoring (input routines etc.)
100
8c8b00d3 »
2012-06-14 Logging
101 logging.o: types.h bits.h
102
e7b2bd59 »
2010-09-20 Fix /ignore -d bug (i_cull() dissects prefixes)
103 names.o: names.c names.h buffer.h irc.h
5ed26854 »
2010-09-01 /ignore -l: lists ignores
104
4881617f »
2011-04-14 Moved rc from ~/.quirc to ~/.quirc/rc (cherrypicked from script branch)
105 script.o: script.c script.h bits.h buffer.h
106
ac506d8f »
2010-08-15 Generate the default colours from an awk script
107 c_init.c: colour.d c_init.awk
108 $(AWK) -f c_init.awk colour.d > c_init.c
109
ebc74a9d »
2012-07-09 Refactored string buffers to new strbuf.h, shared with the gen* progs.
110 genkeymap: genkeymap.c strbuf.h strbuf.o
111 $(CC) $(CFLAGS) $(CPPFLAGS) $< $(LDFLAGS) strbuf.o -o $@
62617ffc »
2011-07-05 Configurable keymapping
112
113 keymod.h: keys genkeymap
114 ./genkeymap h < keys > $@ || (rm $@ && false)
115
116 keymap.c: keys genkeymap
117 ./genkeymap c < keys > $@ || (rm $@ && false)
118
25bf8a00 »
2011-04-06 Makefile fixes (because make behaves unhelpfully)
119 FORCE:
120 version.h: FORCE
fcf94957 »
2010-08-15 Refactored .quirc and cmdline parsing; other refactoring
121 ./gitversion
122
959f0a22 »
2010-08-21 make dist also makes doc
123 dist: all doc
4a2bd9bd »
2010-07-27 Fixed bugs in 'make dist'
124 -mkdir quirc_$(VERSION)
125 for p in $$(ls); do cp $$p quirc_$(VERSION)/$$p; done;
66ea5ebb »
2010-09-25 Makefile rule to build a source tarball (and do funky things with ver…
126 -rm quirc_$(VERSION)/*.tar.gz
7fbe18a8 »
2011-07-05 Makefile fixes (should fix gitlessing tarballs) & some plans
127 mv quirc_$(VERSION)/distMakefile quirc_$(VERSION)/Makefile
811d1bd0 »
2012-02-29 Makefile fixes
128 tar -czf quirc_$(VERSION).tar.gz quirc_$(VERSION)/
062c4d05 »
2010-07-27 dist Makefile rule, creates tarball with binaries
129 rm -r quirc_$(VERSION)
130
21712105 »
2012-06-14 Make 'dists' dependencies more explicit
131 dists: c_init.c config.c config.h version.h keymod.h keymap.c doc
66ea5ebb »
2010-09-25 Makefile rule to build a source tarball (and do funky things with ver…
132 -mkdir quirc_$(VERSION)_src
133 for p in $$(ls); do cp $$p quirc_$(VERSION)_src/$$p; done;
134 -rm quirc_$(VERSION)_src/*.tar.gz
135 rm quirc_$(VERSION)_src/*.o
136 rm quirc_$(VERSION)_src/quirc
7fbe18a8 »
2011-07-05 Makefile fixes (should fix gitlessing tarballs) & some plans
137 mv quirc_$(VERSION)_src/distMakefile quirc_$(VERSION)_src/Makefile
811d1bd0 »
2012-02-29 Makefile fixes
138 tar -czf quirc_$(VERSION)_src.tar.gz quirc_$(VERSION)_src/
66ea5ebb »
2010-09-25 Makefile rule to build a source tarball (and do funky things with ver…
139 rm -r quirc_$(VERSION)_src
140
Something went wrong with that request. Please try again.