diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0708815 --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +RM := rm -f + +CFLAGS = \ + -Iinclude \ + -Wall \ + -Wextra \ + -Wmissing-declarations \ + -Wpedantic \ + -o$(@) \ + -std=c99 + +BIN := agbsum + +OBJS := \ + src/chkpar.o \ + src/exi.o \ + src/getsum.o \ + src/hlp.o \ + src/inidat.o \ + src/main.o \ + src/opn.o \ + src/pat.o \ + src/red.o + +$(BIN): $(OBJS) + $(CC) -o$(BIN) $(OBJS) + +.PHONY: clean install purge + +clean: + $(RM) $(OBJS) + +purge: clean + $(RM) $(BIN) + +install: $(BIN) + mkdir -pm755 "$(BINDIR)" + install -m755 "agbsum" "$(BINDIR)" |