Merge pull request #250 from ilmich/fix-compiler-build

prepare output directory also to build only the compiler
This commit is contained in:
drmortalwombat 2025-05-28 12:55:39 +02:00 committed by GitHub
commit 4bde6385b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ else
endif endif
all: --prep-build-dir compiler samples check all: compiler samples check
$(srcdir)/%.o: $(project_dir)/oscar64/%.cpp $(srcdir)/%.o: $(project_dir)/oscar64/%.cpp
@ -56,7 +56,7 @@ $(srcdir)/%.d: $(project_dir)/oscar64/%.cpp
$(RM) $@.$$$$ $(RM) $@.$$$$
compiler: $(objects) compiler: --prep-build-dir $(objects)
@$(MKDIR_PARENT) $(srcdir) @$(MKDIR_PARENT) $(srcdir)
@echo "Linking compiler..." @echo "Linking compiler..."
$(CXX) $(CPPFLAGS) $(objects) $(linklibs) -o $(project_dir)/bin/oscar64 $(CXX) $(CPPFLAGS) $(objects) $(linklibs) -o $(project_dir)/bin/oscar64