Skip to content
Permalink
Browse files

Experimental 'make one'

  • Loading branch information...
satgo1546 committed Aug 5, 2017
1 parent 0d690f8 commit e8e916d0bbdd8357df5d28a22074a944639beb46
Showing with 7 additions and 1 deletion.
  1. +6 −0 VMDE/build/msw.makefile
  2. +1 −1 inc.makefile
@@ -21,4 +21,10 @@ all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CCLD) $^ -o $@ $(LDLIBS) $(LDFLAGS)

ONE_FILE = one.cxx
one:
type nul > $(ONE_FILE)
for %%i in ($(SOURCES)) do echo #include "%%i" >> $(ONE_FILE)
$(CXX) $(ONE_FILE) -o VMDE.one.dll $(CXXFLAGS) $(LDLIBS) $(LDFLAGS)

.PHONY: all
@@ -63,7 +63,7 @@ ifndef _INCLUDE_INC_MAKEFILE

# Useful variables.
ifeq "$(PLATFORM)" "msw"
SOURCES = $(shell dir /b /s *.cpp)
SOURCES = $(subst $(shell echo %CD%)\,,$(shell dir /b /s *.cpp))
else ifeq "$(PLATFORM)" "gnu"
SOURCES = $(shell find . -name "*.cpp")
else ifeq "$(PLATFORM)" "mac"

0 comments on commit e8e916d

Please sign in to comment.
You can’t perform that action at this time.