Skip to content
Newer
Older
100644 69 lines (45 sloc) 1.51 KB
9f0cff1 Initial commit.
Sound and Fury authored
1 # Makefile for quIRC
2
3 CC ?= gcc
4 CFLAGS ?= -Wall
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
5 AWK ?= gawk
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
6 VERSION := `git describe --tags`
1bf0755 'make install' rule
Sound and Fury authored
7 PREFIX ?= /usr/local
861788e More refactoring (input routines etc.)
Sound and Fury authored
8 LIBS := ttyraw.o ttyesc.o irc.o bits.o colour.o buffer.o names.o config.o input.o
83af8c1 Move handling of numeric responses out to irc.c
Sound and Fury authored
9 INCLUDE := ttyraw.h ttyesc.h irc.h bits.h colour.h buffer.h names.h config.h input.h version.h
9f0cff1 Initial commit.
Sound and Fury authored
10
ec01ab5 Makefile tweaks (all should not make doc; realclean updates)
Sound and Fury authored
11 all: quirc
9f0cff1 Initial commit.
Sound and Fury authored
12
1bf0755 'make install' rule
Sound and Fury authored
13 install: all
34d9328 Diagnostic on unrecognised PART/QUIT/NICK. Also don't strip binary
Sound and Fury authored
14 install -D quirc $(PREFIX)/bin/quirc
1bf0755 'make install' rule
Sound and Fury authored
15
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
16 uninstall:
17 rm $(PREFIX)/bin/quirc
18
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
19 quirc: quirc.c $(LIBS) $(INCLUDE)
20 $(CC) $(CFLAGS) -o quirc quirc.c $(LIBS)
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored
21
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
22 clean:
23 rm *.o quirc
24
25 realclean: clean
ec01ab5 Makefile tweaks (all should not make doc; realclean updates)
Sound and Fury authored
26 rm c_init.c README version.h
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
27
6b0feff Canonical readme in HTML format; makerule to generate plain text
Sound and Fury authored
28 doc: README
29
30 README: readme.htm
31 html2text -nobs -o README < readme.htm
32
c408645 Make the Makefile more clever (pattern rules for the object files)
Sound and Fury authored
33 # funky make cleverness to generate object files; a %.o /always/ depends on its %.h as well as its %.c
9f0cff1 Initial commit.
Sound and Fury authored
34
c408645 Make the Makefile more clever (pattern rules for the object files)
Sound and Fury authored
35 %.o: %.c %.h
36 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
9f0cff1 Initial commit.
Sound and Fury authored
37
2b3007c Highlight escape sequences in input line
Sound and Fury authored
38 ttyesc.o: bits.h
39
83af8c1 Move handling of numeric responses out to irc.c
Sound and Fury authored
40 irc.o: irc.c irc.h bits.h buffer.h colour.h config.h numeric.h
9f0cff1 Initial commit.
Sound and Fury authored
41
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
42 bits.o: bits.c bits.h ttyesc.h colour.h config.h
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
43
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
44 colour.o: colour.c colour.h c_init.c ttyesc.h
15e4136 Automatic version-number generation from git describe
Sound and Fury authored
45
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
46 buffer.o: buffer.c buffer.h ttyesc.h colour.h bits.h names.h text.h
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored
47
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
48 config.o: config.c config.h bits.h colour.h text.h version.h
49
b56f051 Move /command handling out to input.*
Sound and Fury authored
50 input.o: input.c input.h ttyesc.h names.h buffer.h irc.h
861788e More refactoring (input routines etc.)
Sound and Fury authored
51
5ed2685 /ignore -l: lists ignores
Sound and Fury authored
52 names.o: names.c names.h buffer.h
53
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
54 c_init.c: colour.d c_init.awk
55 $(AWK) -f c_init.awk colour.d > c_init.c
56
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
57 # version is touched by a git-commit hook
58 version.h: version
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
59 ./gitversion
60
959f0a2 make dist also makes doc
Sound and Fury authored
61 dist: all doc
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
62 -mkdir quirc_$(VERSION)
63 for p in $$(ls); do cp $$p quirc_$(VERSION)/$$p; done;
6654162 Fix: join from wrong tab; Fix: tarballs in make dist; Doc updates
Sound and Fury authored
64 rm quirc_$(VERSION)/*.tar.gz
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
65 tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
66 gzip quirc_$(VERSION).tar
67 rm -r quirc_$(VERSION)
68
Something went wrong with that request. Please try again.