From 8254af1179db18e2a71c34ab9b7090cda16f0f07 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Sun, 13 Nov 2022 14:17:29 -0600 Subject: Added crouch key * This allows players to move 2D to test collision --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c590bab..991fce9 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ EXEC = main EXECDIR = . SRCDIR = src -OUTDIR = out +OUTDIR = build SRCEXT = cpp OBJEXT = o DEPEXT = d @@ -61,7 +61,7 @@ all: resources $(EXEC) resources: directories -directories: +directories: @mkdir -p $(EXECDIR) @mkdir -p $(OUTDIR) @@ -82,7 +82,7 @@ $(OUTDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT) @echo " CXX " $< @mkdir -p $(dir $@) @$(CXX) $(CXXFLAGS) $(CXXINCS) -c -o $@ $< - @$(CXX) $(CXXFLAGS) $(INCDEP) -MM $(SRCDIR)/$*.$(SRCEXT) > $(OUTDIR)/$*.$(DEPEXT) + @$(CXX) $(CXXFLAGS) $(CXXINCS) $(INCDEP) -MM $(SRCDIR)/$*.$(SRCEXT) > $(OUTDIR)/$*.$(DEPEXT) @cp -f $(OUTDIR)/$*.$(DEPEXT) $(OUTDIR)/$*.$(DEPEXT).tmp @sed -e 's|.*:|$(OUTDIR)/$*.$(OBJEXT):|' < $(OUTDIR)/$*.$(DEPEXT).tmp > $(OUTDIR)/$*.$(DEPEXT) @sed -e 's/.*://' -e 's/\\$$//' < $(OUTDIR)/$*.$(DEPEXT).tmp | fmt -1 | sed -e 's/^ *//' -e 's/$$/:/' >> $(OUTDIR)/$*.$(DEPEXT) -- cgit v1.2.3