Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (36 sloc) 1.274 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
9f0cff1 Initial commit.
Sound and Fury authored
8
9 all: quirc
10
1bf0755 'make install' rule
Sound and Fury authored
11 install: all
34d9328 Diagnostic on unrecognised PART/QUIT/NICK. Also don't strip binary
Sound and Fury authored
12 install -D quirc $(PREFIX)/bin/quirc
1bf0755 'make install' rule
Sound and Fury authored
13
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored
14 quirc: quirc.c ttyraw.o ttyraw.h ttyesc.o ttyesc.h irc.o irc.h bits.o bits.h colour.o colour.h buffer.o buffer.h names.o names.h numeric.h
1bf0755 'make install' rule
Sound and Fury authored
15 -./gitversion
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored
16 $(CC) $(CFLAGS) -o quirc quirc.c ttyraw.o ttyesc.o irc.o bits.o colour.o buffer.o names.o
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored
17
18 # TODO use funky make cleverness for these rules as they're all basically the same
9f0cff1 Initial commit.
Sound and Fury authored
19
20 ttyraw.o: ttyraw.c ttyraw.h
21 $(CC) $(CFLAGS) -o ttyraw.o -c ttyraw.c
22
23 ttyesc.o: ttyesc.c ttyesc.h
24 $(CC) $(CFLAGS) -o ttyesc.o -c ttyesc.c
25
26 irc.o: irc.c irc.h
27 $(CC) $(CFLAGS) -o irc.o -c irc.c
28
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
29 bits.o: bits.c bits.h
30 $(CC) $(CFLAGS) -o bits.o -c bits.c
31
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
32 colour.o: colour.c colour.h c_init.c
dbc7d09 Framework ready for custom colours
Sound and Fury authored
33 $(CC) $(CFLAGS) -o colour.o -c colour.c
15e4136 Automatic version-number generation from git describe
Sound and Fury authored
34
0951f50 Started multiple buffer implementation (this is new branch 'multi')
Sound and Fury authored
35 buffer.o: buffer.c buffer.h
36 $(CC) $(CFLAGS) -o buffer.o -c buffer.c
37
a886cb2 Moved name-list handling out to new files 'names.*'
Sound and Fury authored
38 names.o: names.c names.h
39 $(CC) $(CFLAGS) -o names.o -c names.c
40
ac506d8 Generate the default colours from an awk script
Sound and Fury authored
41 c_init.c: colour.d c_init.awk
42 $(AWK) -f c_init.awk colour.d > c_init.c
43
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
44 dist: all
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
45 -mkdir quirc_$(VERSION)
46 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
47 rm quirc_$(VERSION)/*.tar.gz
4a2bd9b Fixed bugs in 'make dist'
Sound and Fury authored
48 tar -cvvf quirc_$(VERSION).tar quirc_$(VERSION)/
062c4d0 dist Makefile rule, creates tarball with binaries
Sound and Fury authored
49 gzip quirc_$(VERSION).tar
50 rm -r quirc_$(VERSION)
51
Something went wrong with that request. Please try again.