diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
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) |