Updated makefiles for Linux build
This commit is contained in:
@@ -17,10 +17,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/files/%.o: ../src/files/%.cpp
|
||||
src/files/%.o: ../src/files/%.cpp src/files/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -26,10 +26,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/graphics/%.o: ../src/graphics/%.cpp
|
||||
src/graphics/%.o: ../src/graphics/%.cpp src/graphics/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/lighting/%.o: ../src/lighting/%.cpp
|
||||
src/lighting/%.o: ../src/lighting/%.cpp src/lighting/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/loaders/%.o: ../src/loaders/%.cpp
|
||||
src/loaders/%.o: ../src/loaders/%.cpp src/loaders/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -17,10 +17,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/physics/%.o: ../src/physics/%.cpp
|
||||
src/physics/%.o: ../src/physics/%.cpp src/physics/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
+2
-2
@@ -14,10 +14,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/%.o: ../src/%.cpp
|
||||
src/%.o: ../src/%.cpp src/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ CPP_SRCS += \
|
||||
../src/voxels/Block.cpp \
|
||||
../src/voxels/Chunk.cpp \
|
||||
../src/voxels/Chunks.cpp \
|
||||
../src/voxels/ChunksController.cpp \
|
||||
../src/voxels/ChunksLoader.cpp \
|
||||
../src/voxels/WorldGenerator.cpp \
|
||||
../src/voxels/voxel.cpp
|
||||
|
||||
@@ -14,6 +16,8 @@ OBJS += \
|
||||
./src/voxels/Block.o \
|
||||
./src/voxels/Chunk.o \
|
||||
./src/voxels/Chunks.o \
|
||||
./src/voxels/ChunksController.o \
|
||||
./src/voxels/ChunksLoader.o \
|
||||
./src/voxels/WorldGenerator.o \
|
||||
./src/voxels/voxel.o
|
||||
|
||||
@@ -21,15 +25,17 @@ CPP_DEPS += \
|
||||
./src/voxels/Block.d \
|
||||
./src/voxels/Chunk.d \
|
||||
./src/voxels/Chunks.d \
|
||||
./src/voxels/ChunksController.d \
|
||||
./src/voxels/ChunksLoader.d \
|
||||
./src/voxels/WorldGenerator.d \
|
||||
./src/voxels/voxel.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/voxels/%.o: ../src/voxels/%.cpp
|
||||
src/voxels/%.o: ../src/voxels/%.cpp src/voxels/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ CPP_DEPS += \
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
src/window/%.o: ../src/window/%.cpp
|
||||
src/window/%.o: ../src/window/%.cpp src/window/subdir.mk
|
||||
@echo 'Building file: $<'
|
||||
@echo 'Invoking: Cross G++ Compiler'
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
|
||||
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" -o "$@" "$<"
|
||||
@echo 'Finished building: $<'
|
||||
@echo ' '
|
||||
|
||||
|
||||
Reference in New Issue
Block a user