Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 65 lines (43 sloc) 1.474 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
6b0feff Canonical readme in HTML format; makerule to generate plain text
Sound and Fury authored
11 all: quirc doc
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
26 rm c_init.c
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
83af8c1 Move handling of numeric responses out to irc.c
Sound and Fury authored
38 irc.o: irc.c irc.h bits.h buffer.h colour.h config.h numeric.h
9f0cff1 Initial commit.
Sound and Fury authored
39
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
40 bits.o: bits.c bits.h ttyesc.h colour.h config.h
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
41
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
42 colour.o: colour.c colour.h c_init.c ttyesc.h
15e4136 Automatic version-number generation from git describe
Sound and Fury authored
43
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
44 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
45
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
46 config.o: config.c config.h bits.h colour.h text.h version.h
47
861788e More refactoring (input routines etc.)
Sound and Fury authored
48 input.o: input.c input.h ttyesc.h names.h buffer.h
49
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
50 c_init.c: colour.d c_init.awk
51 $(AWK) -f c_init.awk colour.d > c_init.c
52
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
53 # version is touched by a git-commit hook
54 version.h: version
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
55 ./gitversion
56
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
57 dist: all
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
58 -mkdir quirc_$(VERSION)
59 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
60 rm quirc_$(VERSION)/*.tar.gz
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
61 tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
62 gzip quirc_$(VERSION).tar
63 rm -r quirc_$(VERSION)
64
Something went wrong with that request. Please try again.