aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjacob janzen <53062115+JacobJanzen@users.noreply.github.com>2024-02-14 15:52:57 -0600
committerGitHub <noreply@github.com>2024-02-14 21:52:57 +0000
commitb57c21da92563eed58867a9a6b02c201006cbc57 (patch)
treeb42a7654223d228c140870ef711b6f8e499de118 /Makefile
parent7e249ef2644071ca56bdbf7820ca9a66fef23d3c (diff)
Automake (#2)
* gnu autotools build * ignore dist
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
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)