-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 885 Bytes
/
Makefile
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
CFLAGS =-O2 -Wall
LDFLAGS = -O2
PROGS = txt2bbc txt2dos txt2ux txt2cpm txt2bas bas2txt rmnl xdump fdcombine fdsplit sdtest lockf clean7 total
all: $(PROGS)
txt2bbc: txt2bbc.c txtconv.c
$(CC) $(CFLAGS) -o txt2bbc txt2bbc.c
txt2dos: txt2dos.c txtconv.c
$(CC) $(CFLAGS) -o txt2dos txt2dos.c
txt2cpm: txt2cpm.c txtconv.c
$(CC) $(CFLAGS) -o txt2cpm txt2cpm.c
txt2ux: txt2ux.c txtconv.c
$(CC) $(CFLAGS) -o txt2ux txt2ux.c
rmnl: rmnl.c txtconv.c
$(CC) $(CFLAGS) -o rmnl rmnl.c
xdump: xdump.c filter.c
$(CC) $(CFLAGS) -o xdump xdump.c
sdtest: sdtest.c
$(CC) $(CFLAGS) -o sdtest sdtest.c `pkg-config --libs libsystemd`
lockf: lockf.c
$(CC) $(CFLAGS) -o lockf lockf.c
clean7: clean7.c filter.c
$(CC) $(CFLAGS) -o clean7 clean7.c
total: total.c
$(CC) $(CFLAGS) -o total total.c
clean:
rm -f $(PROGS)
install:
strip $(PROGS)
sudo install -m 0555 $(PROGS) /usr/local/bin