Updated makefiles for Linux build
This commit is contained in:
+18
-4
@@ -42,16 +42,30 @@ endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
OPTIONAL_TOOL_DEPS := \
|
||||
$(wildcard ../makefile.defs) \
|
||||
$(wildcard ../makefile.init) \
|
||||
$(wildcard ../makefile.targets) \
|
||||
|
||||
|
||||
BUILD_ARTIFACT_NAME := voxel_engine
|
||||
BUILD_ARTIFACT_EXTENSION :=
|
||||
BUILD_ARTIFACT_PREFIX :=
|
||||
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
|
||||
# All Target
|
||||
all: voxel_engine
|
||||
all: main-build
|
||||
|
||||
# Main-build Target
|
||||
main-build: voxel_engine
|
||||
|
||||
# Tool invocations
|
||||
voxel_engine: $(OBJS) $(USER_OBJS)
|
||||
voxel_engine: $(OBJS) $(USER_OBJS) makefile objects.mk $(OPTIONAL_TOOL_DEPS)
|
||||
@echo 'Building target: $@'
|
||||
@echo 'Invoking: Cross G++ Linker'
|
||||
g++ -o "voxel_engine" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
g++ -pthread -o "voxel_engine" $(OBJS) $(USER_OBJS) $(LIBS)
|
||||
@echo 'Finished building target: $@'
|
||||
@echo ' '
|
||||
|
||||
@@ -60,6 +74,6 @@ clean:
|
||||
-$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) voxel_engine
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.PHONY: all clean dependents main-build
|
||||
|
||||
-include ../makefile.targets
|
||||
|
||||
Reference in New Issue
Block a user