aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrgl <devnull@localhost>2020-01-05 11:52:01 +0100
committerrgl <devnull@localhost>2020-01-05 11:52:01 +0100
commit0c3c8d97316d4bb76a12d8c5fd77c2d95fcd0921 (patch)
treee524cd465fad9d77de5bcee559c025aec62274af /Makefile
downloadfilmoteca-0c3c8d97316d4bb76a12d8c5fd77c2d95fcd0921.tar.gz
filmoteca-0c3c8d97316d4bb76a12d8c5fd77c2d95fcd0921.tar.bz2
filmoteca-0c3c8d97316d4bb76a12d8c5fd77c2d95fcd0921.zip
initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..59f4c54
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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)