Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2008-05-02 17:51:44 +0400
committerstarkos <none@none>2008-05-02 17:51:44 +0400
commit0a240288ab73e6d283c1cf0dc186d096e5c83fc2 (patch)
tree5497146de6f8e70bd0788f21666a3e83c803480a /samples
parentb34a5ab376f1645f67ab40d6a6c6c7dbfec21004 (diff)
GNU C++ project makefile generation (placeholder); refactoring and code cleanup (r346:349)
Diffstat (limited to 'samples')
-rw-r--r--samples/gmake/CppExe/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/gmake/CppExe/Makefile b/samples/gmake/CppExe/Makefile
index ee1101a..1f5ab33 100644
--- a/samples/gmake/CppExe/Makefile
+++ b/samples/gmake/CppExe/Makefile
@@ -41,6 +41,8 @@ OBJECTS := \
RESOURCES := \
+# Can I have premake check the OS type instead of doing this here?
+
MKDIR_TYPE := msdos
CMD := $(subst \,\\,$(ComSpec)$(COMSPEC))
ifeq (,$(CMD))
@@ -63,6 +65,8 @@ endif
.PHONY: clean
+# I really only need to create OUTDIR; that's the only one that matters!
+
$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES)
@echo Linking CppExe
-@$(CMD_MKBINDIR)
@@ -81,6 +85,9 @@ else
-@if exist $(subst /,\,$(OBJDIR)) rmdir /s /q $(subst /,\,$(OBJDIR))
endif
+# add an "objdir" as first dependency to target and create directories there (or maybe
+# call it outdirs and do all required output directories
+
$(OBJDIR)/Hello.o: Hello.cpp
-@$(CMD_MKOBJDIR)
@echo $(notdir $<)