diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2019-12-20 14:58:46 -0600 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2019-12-20 14:58:46 -0600 |
commit | 2d12a0723b510fe7ce475ca1d7d951897250bca6 (patch) | |
tree | 329ee8d8c17e1cd1ca2a393a9df7c388466933b0 /Makefile | |
parent | 41f2282b2a80f772bf363e8127669377873627cb (diff) | |
download | mts-io-sysfs-2d12a0723b510fe7ce475ca1d7d951897250bca6.tar.gz mts-io-sysfs-2d12a0723b510fe7ce475ca1d7d951897250bca6.tar.bz2 mts-io-sysfs-2d12a0723b510fe7ce475ca1d7d951897250bca6.zip |
Changed ccflags-y
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -23,7 +23,7 @@ export STRIP = $(CROSS_COMPILE)strip export OBJCOPY = $(CROSS_COMPILE)objcopy export OBJDUMP = $(CROSS_COMPILE)objdump export RANLIB = $(CROSS_COMPILE)ranlib -export ccflags-y += -march=arm926ejste -mtune=arm926ej-s -mthumb-interwork -mno-thumb -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 +export CFLAGS += -march=arm926ejste -mtune=arm926ej-s -mthumb-interwork -mno-thumb -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2 endif BUILDDIR=build @@ -31,7 +31,7 @@ SOURCEDIR=src # -g -pg | profiling options -ccflags-y += -Werror -Wno-unused-function +CFLAGS += -Werror -Wno-unused-function CXXFLAGS += -std=c++11 -Wno-unused-function @@ -80,19 +80,19 @@ mainbuild: prebuild mts-io-sysfs: $(OBJS) $(BUILDDIR)/MtsIoSysfs.o @echo 'Building target: $@' - $(CXX) $(ccflags-y) $(INC) $(LDFLAGS) -o $(BUILDDIR)/mts-io-sysfs $(OBJS) $(BUILDDIR)/MtsIoSysfs.o $(LIBS) + $(CXX) $(CFLAGS) $(INC) $(LDFLAGS) -o $(BUILDDIR)/mts-io-sysfs $(OBJS) $(BUILDDIR)/MtsIoSysfs.o $(LIBS) @echo 'Finished building target: $@' @echo ' ' $(BUILDDIR)/%.o: $(SOURCEDIR)/%.cpp @echo 'Building file: $<' - $(CXX) $(ccflags-y) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" + $(CXX) $(CFLAGS) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' $(BUILDDIR)/Version.o: $(SOURCEDIR)/Version.cpp @echo 'Building file: $<' - $(CXX) $(ccflags-y) $(INC) -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" + $(CXX) $(CFLAGS) $(INC) -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" @echo 'Finished building: $<' @echo ' ' @@ -104,7 +104,7 @@ $(SOURCEDIR)/Version.cpp: $(BUILDDIR)/MtsIo.o: $(SOURCEDIR)/MtsIo.cpp @echo 'Building file: $<' - $(CXX) $(ccflags-y) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" -DENABLE_MTS_CHECK=${MTS_CHECK} + $(CXX) $(CFLAGS) $(INC) -Wall -std=c++11 -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" -DENABLE_MTS_CHECK=${MTS_CHECK} @echo 'Finished building: $<' @echo ' ' @@ -115,7 +115,7 @@ strip: $(STRIP) $(BUILDDIR)/mts-io-sysfs clean: - -$(RM) $(OBJS) $(CPP_DEPPS) $(BUILDDIR)/mts-io $(BUILDDIR)/MtsIoSysfs.o $(BUILDDIR)/AccessoryCards/*.o $(BUILDDIR)/Device/*.o + -$(RM) $(OBJS) $(CPP_DEPPS) $(BUILDDIR)/mts-io-sysfs $(BUILDDIR)/MtsIoSysfs.o $(BUILDDIR)/AccessoryCards/*.o $(BUILDDIR)/Device/*.o -@echo ' ' .PHONY: all clean dependents |