Skip to content
Newer
Older
100644 62 lines (43 sloc) 1.54 KB
9f0cff1 Initial commit.
Sound and Fury authored Jul 26, 2010
1 # Makefile for quIRC
2
3 CC ?= gcc
4 CFLAGS ?= -Wall
ac506d8 Generate the default colours from an awk script
Sound and Fury authored Aug 15, 2010
5 AWK ?= gawk
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored Jul 27, 2010
6 VERSION := `git describe --tags`
1bf0755 'make install' rule
Sound and Fury authored Jul 27, 2010
7 PREFIX ?= /usr/local
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
8 LIBS := ttyraw.o ttyesc.o irc.o bits.o colour.o buffer.o names.o config.o
9 INCLUDE := ttyraw.h ttyesc.h irc.h bits.h colour.h buffer.h names.h config.h numeric.h version.h
9f0cff1 Initial commit.
Sound and Fury authored Jul 26, 2010
10
11 all: quirc
12
1bf0755 'make install' rule
Sound and Fury authored Jul 27, 2010
13 install: all
34d9328 Diagnostic on unrecognised PART/QUIT/NICK. Also don't strip binary
Sound and Fury authored Jul 28, 2010
14 install -D quirc $(PREFIX)/bin/quirc
1bf0755 'make install' rule
Sound and Fury authored Jul 27, 2010
15
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
16 quirc: quirc.c $(LIBS) $(INCLUDE)
17 $(CC) $(CFLAGS) -o quirc quirc.c $(LIBS)
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored Jul 27, 2010
18
19 # TODO use funky make cleverness for these rules as they're all basically the same
9f0cff1 Initial commit.
Sound and Fury authored Jul 26, 2010
20
21 ttyraw.o: ttyraw.c ttyraw.h
22 $(CC) $(CFLAGS) -o ttyraw.o -c ttyraw.c
23
24 ttyesc.o: ttyesc.c ttyesc.h
25 $(CC) $(CFLAGS) -o ttyesc.o -c ttyesc.c
26
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
27 irc.o: irc.c irc.h bits.h
9f0cff1 Initial commit.
Sound and Fury authored Jul 26, 2010
28 $(CC) $(CFLAGS) -o irc.o -c irc.c
29
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
30 bits.o: bits.c bits.h ttyesc.h colour.h
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored Jul 27, 2010
31 $(CC) $(CFLAGS) -o bits.o -c bits.c
32
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
33 colour.o: colour.c colour.h c_init.c ttyesc.h
dbc7d09 Framework ready for custom colours
Sound and Fury authored Jul 27, 2010
34 $(CC) $(CFLAGS) -o colour.o -c colour.c
15e4136 Automatic version-number generation from git describe
Sound and Fury authored Jul 27, 2010
35
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
36 buffer.o: buffer.c buffer.h ttyesc.h colour.h bits.h names.h
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored Jul 27, 2010
37 $(CC) $(CFLAGS) -o buffer.o -c buffer.c
38
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored Aug 14, 2010
39 names.o: names.c names.h
40 $(CC) $(CFLAGS) -o names.o -c names.c
41
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
42 config.o: config.c config.h bits.h colour.h text.h version.h
43 $(CC) $(CFLAGS) -o config.o -c config.c
44
ac506d8 Generate the default colours from an awk script
Sound and Fury authored Aug 15, 2010
45 c_init.c: colour.d c_init.awk
46 $(AWK) -f c_init.awk colour.d > c_init.c
47
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored Aug 15, 2010
48 version.h:
49 ./gitversion
50
51 # version.h is phony because, although the file exists, we always want to update it
52 .PHONY: version.h
53
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored Jul 27, 2010
54 dist: all
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored Jul 27, 2010
55 -mkdir quirc_$(VERSION)
56 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 Jul 28, 2010
57 rm quirc_$(VERSION)/*.tar.gz
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored Jul 27, 2010
58 tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored Jul 27, 2010
59 gzip quirc_$(VERSION).tar
60 rm -r quirc_$(VERSION)
61
Something went wrong with that request. Please try again.