diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1951f71 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.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) +DESTDIR=/usr/local + +all: $(BINDIR)/touch + +clean: + rm -f $(BINDIR)/touch $(OBJDIR)/*.o + +install: $(BINDIR)/touch + cp $(BINDIR)/touch $(DESTDIR)/bin + +$(BINDIR)/touch: $(OBJDIR)/touch.o +$(OBJDIR)/touch.o: $(SRCDIR)/touch.c + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/touch.c + +$(BINDIR)/touch: + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) |