diff options
author | Jakob Kaivo <jkk@ung.org> | 2023-03-04 22:58:17 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2023-03-04 22:58:17 -0500 |
commit | acf9238af56b7876048ba1178aa1b0f3949e3ffc (patch) | |
tree | 393d7cb77dbb48c2c6ca6ad8d69b8d346b116b74 /Makefile | |
parent | e394cafc4a2c7b57962784f3780feb8c29126668 (diff) |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b541a2b --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +.POSIX: + +# This Makefile was generated by maje +# See https://src.kaivo.net/dev/maje/ for more information +# Do not edit this Makefile by hand + +CC=c99 +LD=$(CC) +CFLAGS=-Wall -Wextra -Wpedantic -Werror -g +LDFLAGS= +LDLIBS= +SRCDIR=. +OBJDIR=. +BINDIR=$(OBJDIR) +LIBDIR=$(OBJDIR) +DESTDIR=/usr/local + +all: $(BINDIR)/plaintext + +clean: + rm -f $(BINDIR)/plaintext $(OBJDIR)/*.o + +install: $(BINDIR)/plaintext + mkdir -p $(DESTDIR)/bin + cp $(BINDIR)/plaintext $(DESTDIR)/bin + +$(BINDIR)/plaintext: $(OBJDIR)/plaintext.o +$(OBJDIR)/plaintext.o: $(SRCDIR)/plaintext.c + @mkdir -p $(@D) + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/plaintext.c + +$(BINDIR)/plaintext: + @mkdir -p $(@D) + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) |