diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-07-12 13:15:46 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-07-12 13:15:46 -0400 |
commit | de577bc2593d5fa06861388ad02bb63829cde05f (patch) | |
tree | 238fff3c9c22b8d5440fdb94acd65a871afd37ab | |
parent | f55be528ad86b02568789c8ba30e3d7c238f8700 (diff) |
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef04493 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +rempty +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ef0f4c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +.POSIX: + +# This Makefile was generated by maje +# See https://gitlab.com/jkaivo/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) + +all: $(BINDIR)/rempty + +clean: + rm -f $(BINDIR)/rempty $(OBJDIR)/*.o + +$(BINDIR)/rempty: $(OBJDIR)/rempty.o +$(OBJDIR)/rempty.o: $(SRCDIR)/rempty.c + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/rempty.c + +$(BINDIR)/rempty: + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) |