From de375f61440fb60495a802fc89d11a94456bad5f Mon Sep 17 00:00:00 2001 From: NoneSince Date: Sat, 27 Jan 2024 15:39:47 +0200 Subject: [PATCH] fixed makefile issue in windows: program name must end with .exe extention --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d0c7ad..25236a9 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SDIR = src BDIR = bin _OBJS = construct_debug.o construct_flags.o deconstruct.o reconstruct.o construct.o OBJS = $(patsubst %,$(BDIR)/%,$(_OBJS)) -PROG = construct +PROG = construct.exe .PHONY: all clean @@ -12,7 +12,7 @@ all: $(OBJS) $(BDIR)/$(PROG) $(BDIR)/$(PROG): $(OBJS) mkdir -p $(BDIR) - $(CC) $(OBJS) -o $(BDIR)/$(PROG) + $(CC) $(OBJS) -o $(BDIR)/$(PROG) $(CFLAGS) $(BDIR)/construct.o: $(SDIR)/construct.cpp $(SDIR)/deconstruct.h $(SDIR)/reconstruct.h $(SDIR)/construct_flags.h $(SDIR)/construct_types.h mkdir -p $(BDIR)