From 0c3c8d97316d4bb76a12d8c5fd77c2d95fcd0921 Mon Sep 17 00:00:00 2001 From: rgl Date: Sun, 5 Jan 2020 11:52:01 +0100 Subject: initial commit. --- Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3