Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 74 lines (48 sloc) 1.753 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)
eb63d03 --debug option, and debugging mode
Sound and Fury authored
20 $(CC) $(CFLAGS) -o quirc quirc.c $(LIBS) $(DEFINES)
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored
21
68d1b71 Use mcheck.h for memory profiling
Sound and Fury authored
22 mtrace: quirc-mtrace
23
24 quirc-mtrace: quirc.c $(LIBS) $(INCLUDE)
eb63d03 --debug option, and debugging mode
Sound and Fury authored
25 $(CC) $(CFLAGS) -o quirc-mtrace quirc.c $(LIBS) -g -DUSE_MTRACE $(DEFINES)
68d1b71 Use mcheck.h for memory profiling
Sound and Fury authored
26
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
27 clean:
28 rm *.o quirc
29
30 realclean: clean
ec01ab5 Makefile tweaks (all should not make doc; realclean updates)
Sound and Fury authored
31 rm c_init.c README version.h
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
32
6b0feff Canonical readme in HTML format; makerule to generate plain text
Sound and Fury authored
33 doc: README
34
35 README: readme.htm
36 html2text -nobs -o README < readme.htm
37
c408645 Make the Makefile more clever (pattern rules for the object files)
Sound and Fury authored
38 # 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
39
c408645 Make the Makefile more clever (pattern rules for the object files)
Sound and Fury authored
40 %.o: %.c %.h
eb63d03 --debug option, and debugging mode
Sound and Fury authored
41 $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ $(DEFINES)
9f0cff1 Initial commit.
Sound and Fury authored
42
2b3007c Highlight escape sequences in input line
Sound and Fury authored
43 ttyesc.o: bits.h
44
bdca1e0 More correct casemapping handling (doesn't yet detect from RPL_ISUPPORT)
Sound and Fury authored
45 irc.o: irc.c irc.h bits.h buffer.h colour.h config.h names.h numeric.h
9f0cff1 Initial commit.
Sound and Fury authored
46
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
47 bits.o: bits.c bits.h ttyesc.h colour.h config.h
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
48
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
49 colour.o: colour.c colour.h c_init.c ttyesc.h
15e4136 Automatic version-number generation from git describe
Sound and Fury authored
50
bdca1e0 More correct casemapping handling (doesn't yet detect from RPL_ISUPPORT)
Sound and Fury authored
51 buffer.o: buffer.c buffer.h ttyesc.h colour.h bits.h names.h text.h irc.h config.h version.h
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored
52
a21b9dd Add /ignores in .quirc
Sound and Fury authored
53 config.o: config.c config.h names.h bits.h colour.h text.h version.h
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
54
b56f051 Move /command handling out to input.*
Sound and Fury authored
55 input.o: input.c input.h ttyesc.h names.h buffer.h irc.h
861788e More refactoring (input routines etc.)
Sound and Fury authored
56
5ed2685 /ignore -l: lists ignores
Sound and Fury authored
57 names.o: names.c names.h buffer.h
58
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
59 c_init.c: colour.d c_init.awk
60 $(AWK) -f c_init.awk colour.d > c_init.c
61
4050262 Use a post-commit hook to update version.h (with the Makefile)
Sound and Fury authored
62 # version is touched by a git-commit hook
63 version.h: version
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
64 ./gitversion
65
959f0a2 make dist also makes doc
Sound and Fury authored
66 dist: all doc
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
67 -mkdir quirc_$(VERSION)
68 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
69 rm quirc_$(VERSION)/*.tar.gz
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
70 tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
71 gzip quirc_$(VERSION).tar
72 rm -r quirc_$(VERSION)
73
Something went wrong with that request. Please try again.