blob: 59f4c544ddf5b1d9e7b13376b1487556d54d1718 (
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 -ggdb -c -O2
LDFLAGS=-static
O=o
TARG=filmoteca
OFILES=\
filmoteca.$O\
LIBS=\
libutf/libutf.a\
HFILES=\
libutf/utf.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)
|