diff options
author | jacob janzen <53062115+JacobJanzen@users.noreply.github.com> | 2024-02-14 15:52:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 21:52:57 +0000 |
commit | b57c21da92563eed58867a9a6b02c201006cbc57 (patch) | |
tree | b42a7654223d228c140870ef711b6f8e499de118 /Makefile | |
parent | 7e249ef2644071ca56bdbf7820ca9a66fef23d3c (diff) |
Automake (#2)
* gnu autotools build
* ignore dist
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 61be5b0..0000000 --- a/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -CC=clang -SRCDIR=src -BUILDDIR=build -TARGET=$(BUILDDIR)/main - -INCLUDE_PATHS=-Iinclude -LDFLAGS=-lcurses - -SRCS=$(wildcard $(SRCDIR)/*.c) -OBJS=$(patsubst $(SRCDIR)/%.c,$(BUILDDIR)/%.o,$(SRCS)) - -all: $(TARGET) - -$(BUILDDIR)/%.o: $(SRCDIR)/%.c - mkdir -p $(BUILDDIR) - $(CC) -c $(CFLAGS) $(INCLUDE_PATHS) $^ -o $@ - -$(BUILDDIR)/main.o: main.c - mkdir -p $(BUILDDIR) - $(CC) -c $(CFLAGS) $(INCLUDE_PATHS) $^ -o $@ - -$(TARGET): $(OBJS) $(BUILDDIR)/main.o - mkdir -p $(BUILDDIR) - $(CC) -o $@ $(LDFLAGS) $^ - -clean: - rm -rf $(BUILDDIR) |