summaryrefslogtreecommitdiff
path: root/Makefile
blob: 14b9287ef158182e825edf257efddc80b78db4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:
.SUFFIXES:

CC       = gcc
CFLAGS   = -std=c89 -Wall -Wextra -fwhole-program
X11FLAGS = -lm -lX11 -lxcb -lXau -lXdmcp

x11: artifacts/xip-8

artifacts/xip-8: sources/meta/*.c sources/*.c resources/icon.tga.h
	$(CC) $(CFLAGS) $(X11FLAGS) sources/main.c -o artifacts/xip-8

artifacts/bin2c: utils/bin2.c
	$(CC) $(CFLAGS) utils/bin2.c -o artifacts/bin2c

resources/icon.tga.h: resources/icon.tga artifacts/bin2c
	./artifacts/bin2c resources/icon.tga

run: x11
	./artifacts/xip-8

clean:
	rm -f resources/*.h
	rm -rf artifacts/*