commit eb0a89d83605e5297a0c231b5d378f575078d207 parent 7a00b7ce2c4f163ee01e63376df753c8cb692125 Author: aabacchus <ben@bvnf.space> Date: Mon, 4 Jul 2022 14:25:05 +0100 simplify Makefile, add .gitignore Diffstat:
A | .gitignore | | | 2 | ++ |
M | Makefile | | | 16 | +++++----------- |
2 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +bhttp +*.o diff --git a/Makefile b/Makefile @@ -1,19 +1,13 @@ .POSIX: -XCFLAGS = $(CFLAGS) -Wall -Wextra -pedantic -D_XOPEN_SOURCE=700 -XLDFLAGS = $(LDFLAGS) -DEBUG = -Og -g -fsanitize=address +CC = clang -fsanitize=address +CFLAGS = -Wall -Wextra -pedantic -D_XOPEN_SOURCE=700 -Og -g -BIN = bhttp OBJS = bhttp.o -all: $(BIN) +all: bhttp -$(BIN): $(OBJS) - $(CC) $(XLDFLAGS) $(DEBUG) $(OBJS) -o $@ - -.c.o: - $(CC) $(XCFLAGS) $(DEBUG) -c $< +bhttp: $(OBJS) clean: - rm -f $(BIN) $(OBJS) + rm -f bhttp $(OBJS)