diff options
author | Rodrigo G. López <r.gonzalez@telfy.com> | 2020-08-26 11:00:11 +0200 |
---|---|---|
committer | Rodrigo G. López <r.gonzalez@telfy.com> | 2020-08-26 11:00:11 +0200 |
commit | e2e807dd68ad1e0708e8a2ab8f81c64da7695456 (patch) | |
tree | 62edc8a653a18fbe028536c955d69a321743fea8 /Makefile | |
download | logwatch-e2e807dd68ad1e0708e8a2ab8f81c64da7695456.tar.gz logwatch-e2e807dd68ad1e0708e8a2ab8f81c64da7695456.tar.bz2 logwatch-e2e807dd68ad1e0708e8a2ab8f81c64da7695456.zip |
initial release.master
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35ac87d --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +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 +BIN=$(HOME)/bin + +TARG=logwatch +OFILES=\ + main.$O\ + +LIBS=\ + libutf/libutf.a\ + +HFILES=\ + args.h\ + 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) $(BIN)/ + +uninstall: + rm -f $(BIN)/$(TARG) + +man: + groff -man $(TARG).8.man | ps2pdf - >$(TARG).8.pdf + +clean: + rm $(TARG) *.o *.pdf |