blob: e2a8a4409fa6bce1dec954fa29dd0efa127a94ad (
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
25
26
27
28
29
30
31
32
33
34
35
|
CC=cc
CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -Wno-pointer-to-int-cast -fno-diagnostics-color -I/usr/local/include -ggdb -c -O2
LDFLAGS=-static -L/usr/local/lib -pthread -lfmt -lutf
O=o
TARG=filmoteca
OFILES=\
filmoteca.$O\
util.$O\
HFILES=\
dat.h\
fns.h\
args.h\
.PHONY: all clean
all: $(TARG)
%.$O: %.c
$(CC) $(CFLAGS) $<
$(OFILES): $(HFILES)
$(TARG): $(OFILES)
$(CC) -o $@ $(OFILES) $(LIBS) $(LDFLAGS)
install: $(TARG)
cp $(TARG) $(HOME)/bin/
cp filmsrv $(HOME)/bin/
uninstall:
rm -f $(HOME)/bin/$(TARG) $(HOME)/bin/filmsrv
clean:
rm $(OFILES) $(TARG)
|