From d5db77157de38c653463a828c6f39d43997986a4 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 14 Apr 2022 09:35:33 -0400 Subject: first draft --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..095d0d1 --- /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=-lcurses +SRCDIR=. +OBJDIR=. +BINDIR=$(OBJDIR) +DESTDIR=/usr/local + +all: $(BINDIR)/untic + +clean: + rm -f $(BINDIR)/untic $(OBJDIR)/*.o + +install: $(BINDIR)/untic + cp $(BINDIR)/untic $(DESTDIR)/bin + +$(BINDIR)/untic: $(OBJDIR)/untic.o +$(OBJDIR)/untic.o: $(SRCDIR)/untic.c + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/untic.c + +$(BINDIR)/untic: + $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/*.o $(LDLIBS) -- cgit v1.2.1