From bfaf0f0e02d5aac9af8a37de98b084b43dce3066 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 2 Dec 2023 12:29:29 +0300 Subject: [PATCH] Fix Makefile --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6a2fc30..deb2798 100644 --- a/Makefile +++ b/Makefile @@ -11,19 +11,19 @@ DEFLDFLAGS = $(shell if echo "" | cc -E -dM -xc - | grep __FreeBSD__ > /dev/null all: $(OUT) -obj: - mkdir obj +$(OBJDIR): + mkdir $(OBJDIR) -platform: obj - mkdir obj/platform +$(OBJDIR)/platform: $(OBJDIR) + mkdir $(OBJDIR)/platform $(OBJDIR)/%.o: $(SRCDIR)/%.c $(CC) -c -o $@ $< $(CFLAGS) $(INCLUDE) -$(OUT): obj platform $(OBJ) +$(OUT): $(OBJDIR) $(OBJDIR)/platform $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) $(DEFLDFLAGS) clean: - $(RM) -r $(OUT) $(OBJDIR)/* + $(RM) $(OUT) $(OBJDIR)/*.o $(OBJDIR)/platform/*.o .PHONY: default clean