about summary refs log tree commit diff
path: root/Makefile
blob: 76e130bd043266d390a2c31ddb9eefafb6924097 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
USER = chat
CFLAGS += -Wall -Wextra -Wpedantic
CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
LDLIBS = -lcursesw -ltls
OBJS = chat.o handle.o input.o irc.o pls.o ui.o

all: tags chat

chat: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@

$(OBJS): chat.h

tags: *.h *.c
	ctags -w *.h *.c

chroot.tar: chat
	mkdir -p root
	install -d -o root -g wheel \
		root/bin \
		root/etc \
		root/home \
		root/lib \
		root/libexec \
		root/usr \
		root/usr/local \
		root/usr/local/etc \
		root/usr/local/etc/ssl \
		root/usr/share \
		root/usr/share/misc
	install -d -o $(USER) -g $(USER) root/home/$(USER)
	cp -p -f /libexec/ld-elf.so.1 root/libexec
	cp -p -f \
		/lib/libc.so.7 \
	    /lib/libedit.so.7 \
		/lib/libncursesw.so.8 \
		/lib/libthr.so.3 \
		/usr/local/lib/libcrypto.so.43 \
		/usr/local/lib/libssl.so.45 \
		/usr/local/lib/libtls.so.17 \
		root/lib
	cp -p -f /etc/hosts /etc/resolv.conf root/etc
	cp -p -f /usr/local/etc/ssl/cert.pem root/usr/local/etc/ssl
	cp -a -f /usr/share/locale root/usr/share
	cp -p -f /usr/share/misc/termcap.db root/usr/share/misc
	cp -p -f /bin/sh root/bin
	install -o root -g wheel -m 555 chat root/bin
	tar -c -f chroot.tar -C root bin etc home lib libexec usr

clean:
	rm -f tags chat $(OBJS) chroot.tar
7d99b000a799967'>Index color if possible in pngoJune McEnroe2018-02-19 | * Read and write palette in pngoJune McEnroe2018-02-19 | * Add pngo to READMEJune McEnroe2018-02-18 | * Always dump truecolor PNG in gfxxJune McEnroe2018-02-18 | | | | pngo can handle reducing it to grayscale. * Eliminate redundant color in pngoJune McEnroe2018-02-18 | * Just globalize all the things in pngoJune McEnroe2018-02-18 | * Tweak pngo codeJune McEnroe2018-02-17 | * Eliminate redundant alpha in pngoJune McEnroe2018-02-17 | * Support all bit depths in pngoJune McEnroe2018-02-17 | * Implement filter heuristic from PNG specJune McEnroe2018-02-17 | * Fix pngo glitchJune McEnroe2018-02-16 | | | | | Basically changing the filter type without actually recalculating the bytes results in some interesting stuff. * Refactor scanlines and filter bytes, more glitchJune McEnroe2018-02-16 | * Fix paethPredictor comparisonJune McEnroe2018-02-16 | * Handle more color types, depths, IDATs in pngoJune McEnroe2018-02-16 | | | | | Also fixed reconData so that it can at least round-trip the glitches it creates. * Add WIP pngo which produces glitch artJune McEnroe2018-02-15 | * Encode grayscale PNGs in gfxxJune McEnroe2018-02-14 | * Avoid accessing past last byte in gfxxJune McEnroe2018-02-14 | * Print PNG path on gfxx dumpJune McEnroe2018-02-14 | * Add gfxx 4444 presetJune McEnroe2018-02-14 | * Fix gfxx row scrolling for BITS_TOTAL < 8June McEnroe2018-02-14 | * Write at least 1 for each component of sBIT in gfxxJune McEnroe2018-02-14 | | | | PNG requires each to be 0 < x <= depth. ImageMagick actually checks. * Write newlines between watch iterationsJune McEnroe2018-02-14 | * Add gfxx DUMP_ALLJune McEnroe2018-02-14 | * Replace pngChunk with glorious C metaprogrammingJune McEnroe2018-02-14 | * Move PNG filename counter into gfxxJune McEnroe2018-02-14 | | | | pngs.c was a fun idea but a little convoluted. * Remove typoJune McEnroe2018-02-14 | | | | | The bin, not a typographical error. I only made it because I was switching keyboard layouts but now I'm back on QWERTY and can type fine. * Unset dump in gfxx drawJune McEnroe2018-02-13 | | | | Otherwise hitting 'x' then resizing would cause dumps. * Add PNG stream splitterJune McEnroe2018-02-13 | | | | | I don't know, somehow this is easier than having gfxx care about where it's writing to. * Dump gfxx screen to PNG on stdout with xJune McEnroe2018-02-12 | * Add PNG encoder to gfxxJune McEnroe2018-02-12 | * Add "Close Window" menu item to gfx/cocoaJune McEnroe2018-02-11 | * Tweak gfxx code styleJune McEnroe2018-02-11 | | | | Just things. * Avoid xres/yres names in gfxxJune McEnroe2018-02-11 | * Only set GFX if unsetJune McEnroe2018-02-11 | * Link -lncursesJune McEnroe2018-02-09 | | | | Apparently the curses link doesn't exist everywhere. * Fix X11 KeySym lookup with modifiersJune McEnroe2018-02-09 | | | | | | On friends' systems there appear to be modifiers that are always set which were intefering with selecting the KeySym based on the state of shift. * Clean up bin/gfx/x11.cJune McEnroe2018-02-09 | | | | | Only behavior that should have changed is avoiding reallocating the pixmap unless the width or height is larger. * Move gfx interface to header fileJune McEnroe2018-02-09 | | | | | .o files should technically depend on this, but I don't think it will matter much. * Silence BSD ctags warningsJune McEnroe2018-02-09 |