diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-04-14 09:35:33 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-04-14 09:35:33 -0400 |
commit | d5db77157de38c653463a828c6f39d43997986a4 (patch) | |
tree | 79b58cfa794637959ad52a2800c6e30d8df1d822 /Makefile |
first draft
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..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) |