diff options
author | Rodrigo G. López <r.gonzalez@telfy.com> | 2021-10-14 14:04:54 +0200 |
---|---|---|
committer | Rodrigo G. López <r.gonzalez@telfy.com> | 2021-10-14 14:04:54 +0200 |
commit | 0388142877654e7b0a420f8e63b4a3153644aee4 (patch) | |
tree | 58ec31680f5c42033ce1ea99990cde3090792f96 /Makefile | |
download | paramedic-0388142877654e7b0a420f8e63b4a3153644aee4.tar.gz paramedic-0388142877654e7b0a420f8e63b4a3153644aee4.tar.bz2 paramedic-0388142877654e7b0a420f8e63b4a3153644aee4.zip |
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..373aef4 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +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=paramedic +OFILES=\ + main.$O\ + +.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 |