Skip to content

Commit

Permalink
Cross debug makefiles
Browse files Browse the repository at this point in the history
not yet working, will fix it some day
  • Loading branch information
alxnik committed Dec 3, 2012
1 parent b79e1d7 commit a8c509c
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 0 deletions.
30 changes: 30 additions & 0 deletions CrossDebug/libmodbus/subdir.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
CPP_SRCS += \
../libmodbus/modbus-rtu.cpp \
../libmodbus/modbus-tcp.cpp \
../libmodbus/modbus.cpp

OBJS += \
./libmodbus/modbus-rtu.o \
./libmodbus/modbus-tcp.o \
./libmodbus/modbus.o

CPP_DEPS += \
./libmodbus/modbus-rtu.d \
./libmodbus/modbus-tcp.d \
./libmodbus/modbus.d


# Each subdirectory must supply rules for building sources it contributes
libmodbus/%.o: ../libmodbus/%.cpp
@echo 'Building file: $<'
@echo 'Invoking: Cross G++ Compiler'
arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


60 changes: 60 additions & 0 deletions CrossDebug/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include tinyxml/subdir.mk
-include libmodbus/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: fpd

# Tool invocations
fpd: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
arm-linux-gnueabihf-g++ -o "fpd" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

# Other Targets
clean:
-$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) fpd
-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
8 changes: 8 additions & 0 deletions CrossDebug/objects.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

USER_OBJS :=

LIBS := -ludev -lbluetooth -lmysqlclient_r -lm

29 changes: 29 additions & 0 deletions CrossDebug/sources.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

O_SRCS :=
CPP_SRCS :=
C_UPPER_SRCS :=
C_SRCS :=
S_UPPER_SRCS :=
OBJ_SRCS :=
ASM_SRCS :=
CXX_SRCS :=
C++_SRCS :=
CC_SRCS :=
C++_DEPS :=
OBJS :=
C_DEPS :=
CC_DEPS :=
CPP_DEPS :=
EXECUTABLES :=
CXX_DEPS :=
C_UPPER_DEPS :=

# Every subdirectory with source files must be described here
SUBDIRS := \
tinyxml \
libmodbus \
. \

60 changes: 60 additions & 0 deletions CrossDebug/subdir.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
CPP_SRCS += \
../CBlueTooth.cpp \
../CFroniusProbe.cpp \
../CLog.cpp \
../CModbusMTU.cpp \
../CMysqlDb.cpp \
../CScanner.cpp \
../CSerial.cpp \
../CSmaProbe.cpp \
../CSocket.cpp \
../CSolutronicProbe.cpp \
../CSunergyProbe.cpp \
../CXMLDb.cpp \
../fpd.cpp

OBJS += \
./CBlueTooth.o \
./CFroniusProbe.o \
./CLog.o \
./CModbusMTU.o \
./CMysqlDb.o \
./CScanner.o \
./CSerial.o \
./CSmaProbe.o \
./CSocket.o \
./CSolutronicProbe.o \
./CSunergyProbe.o \
./CXMLDb.o \
./fpd.o

CPP_DEPS += \
./CBlueTooth.d \
./CFroniusProbe.d \
./CLog.d \
./CModbusMTU.d \
./CMysqlDb.d \
./CScanner.d \
./CSerial.d \
./CSmaProbe.d \
./CSocket.d \
./CSolutronicProbe.d \
./CSunergyProbe.d \
./CXMLDb.d \
./fpd.d


# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.cpp
@echo 'Building file: $<'
@echo 'Invoking: Cross G++ Compiler'
arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


24 changes: 24 additions & 0 deletions CrossDebug/tinyxml/subdir.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
CPP_SRCS += \
../tinyxml/tinyxml2.cpp

OBJS += \
./tinyxml/tinyxml2.o

CPP_DEPS += \
./tinyxml/tinyxml2.d


# Each subdirectory must supply rules for building sources it contributes
tinyxml/%.o: ../tinyxml/%.cpp
@echo 'Building file: $<'
@echo 'Invoking: Cross G++ Compiler'
arm-linux-gnueabihf-g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


0 comments on commit a8c509c

Please sign in to comment.