From de577bc2593d5fa06861388ad02bb63829cde05f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 12 Jul 2020 13:15:46 -0400 Subject: add Makefile and .gitignore --- .gitignore | 2 ++ Makefile | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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) -- cgit v1.2.1