-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathz
executable file
·35 lines (26 loc) · 1.06 KB
/
z
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
#! /bin/make -f
run: zfs zfb z1
test -e zdisk || ./zfs create files zdisk
./zfb ./z1 zdisk
rm -rf files && mkdir files && ./zfs extract zdisk files
z0: z0.c
cc -std=c99 -g -o z0 z0.c
z1: z0 files/asm1 files/comp1
./z0 files/asm1 files/comp1 z1
files/fonts: zttf z
./zttf /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf 14 fonts/mono >files/fonts
./zttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf 14 fonts/sans >>files/fonts
./zttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf 18 fonts/sans-l >>files/fonts
./zttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Bold.ttf 14 fonts/sans-b >>files/fonts
./zttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Oblique.ttf 14 fonts/sans-o >>files/fonts
./zttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Oblique.ttf 12 fonts/sans-o-s >>files/fonts
zfb: zfb.c
gcc -g -o zfb zfb.c $$(pkg-config --libs --cflags sdl2) -lrt
zttf: zttf.c
gcc -g -o zttf zttf.c $$(freetype-config --cflags --libs)
zfs: zfs.c
cc -std=c99 -g -o zfs zfs.c
clean:
rm -f z0 z1 font.z0 zfb zttf zfs
realclean: clean
rm -f zdisk