Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
in4lio committed Oct 17, 2014
1 parent da27ec3 commit d28677d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 119 deletions.
31 changes: 3 additions & 28 deletions eg/light/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,20 @@ BIN = light
# -- creating MAP file
MAP = 0

ifeq ($(OS),Windows_NT)
# -- platform (core)
# ARM Cortex-M3: __MDKARM__
# DOS: __DJGPP__
# WIN32: __MINGW__
# UNIX: __UNIX__
ifeq ($(OS),Windows_NT)
# WIN32
PLATFORM = __MINGW__
else
# UNIX
PLATFORM = __UNIX__
endif

TOP = ../..

# -- compilers
ifeq ($(PLATFORM),__DJGPP__)
CC = $(DJGPP_HOME)/bin/gcc.exe
CXX = $(DJGPP_HOME)/bin/gxx.exe
else
CC = gcc
CXX = g++
endif

# -- on EV3 BRICK
ifeq ($(PLATFORM),__UNIX__)
Expand All @@ -57,18 +50,12 @@ PP = @echo makefile: warning: preprocessing step is skipped,
endif

# -- output subdirectory
ifeq ($(PLATFORM),__DJGPP__)
D_PLATFORM = djgpp
else

ifeq ($(PLATFORM),__MINGW__)
D_PLATFORM = mingw
else
D_PLATFORM =
endif

endif

# -- yupp import directories
D_YU = $(TOP)/source/ev3

Expand Down Expand Up @@ -148,12 +135,6 @@ CFLAGS = $(addprefix -I, $(D_H)) -O2 -W -Wall -Wno-comment -std=gnu99
CXXFLAGS = $(addprefix -I, $(D_H)) -O2 -ffast-math -funroll-loops -fno-exceptions -fomit-frame-pointer -g -W -Wall -Wno-comment
ASMFLAGS = -Wall

# -- platform specific options
ifeq ($(PLATFORM),__DJGPP__)
BUFSIZE = 16k
MINSTACK = 1024k
endif

# ---------------------------------
# files lists
# ---------------------------------
Expand Down Expand Up @@ -196,14 +177,8 @@ endef
endif

# -- optional final tools
ifeq ($(PLATFORM),__DJGPP__)
define final
stubedit $1 minstack=$(MINSTACK) bufsize=$(BUFSIZE)
endef
else
define final
endef
endif

# -- removal list
R = $(F_BIN) $(O)
Expand Down
31 changes: 3 additions & 28 deletions eg/sensor/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,20 @@ BIN = sensor
# -- creating MAP file
MAP = 0

ifeq ($(OS),Windows_NT)
# -- platform (core)
# ARM Cortex-M3: __MDKARM__
# DOS: __DJGPP__
# WIN32: __MINGW__
# UNIX: __UNIX__
ifeq ($(OS),Windows_NT)
# WIN32
PLATFORM = __MINGW__
else
# UNIX
PLATFORM = __UNIX__
endif

TOP = ../..

# -- compilers
ifeq ($(PLATFORM),__DJGPP__)
CC = $(DJGPP_HOME)/bin/gcc.exe
CXX = $(DJGPP_HOME)/bin/gxx.exe
else
CC = gcc
CXX = g++
endif

# -- on EV3 BRICK
ifeq ($(PLATFORM),__UNIX__)
Expand All @@ -57,18 +50,12 @@ PP = @echo makefile: warning: preprocessing step is skipped,
endif

# -- output subdirectory
ifeq ($(PLATFORM),__DJGPP__)
D_PLATFORM = djgpp
else

ifeq ($(PLATFORM),__MINGW__)
D_PLATFORM = mingw
else
D_PLATFORM =
endif

endif

# -- yupp import directories
D_YU = $(TOP)/source/ev3

Expand Down Expand Up @@ -148,12 +135,6 @@ CFLAGS = $(addprefix -I, $(D_H)) -O2 -W -Wall -Wno-comment -std=gnu99
CXXFLAGS = $(addprefix -I, $(D_H)) -O2 -ffast-math -funroll-loops -fno-exceptions -fomit-frame-pointer -g -W -Wall -Wno-comment
ASMFLAGS = -Wall

# -- platform specific options
ifeq ($(PLATFORM),__DJGPP__)
BUFSIZE = 16k
MINSTACK = 1024k
endif

# ---------------------------------
# files lists
# ---------------------------------
Expand Down Expand Up @@ -196,14 +177,8 @@ endef
endif

# -- optional final tools
ifeq ($(PLATFORM),__DJGPP__)
define final
stubedit $1 minstack=$(MINSTACK) bufsize=$(BUFSIZE)
endef
else
define final
endef
endif

# -- removal list
R = $(F_BIN) $(O)
Expand Down
32 changes: 4 additions & 28 deletions eg/tacho/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,20 @@ BIN = tacho
# -- creating MAP file
MAP = 0

ifeq ($(OS),Windows_NT)
# -- platform (core)
# ARM Cortex-M3: __MDKARM__
# DOS: __DJGPP__
# WIN32: __MINGW__
# UNIX: __UNIX__
ifeq ($(OS),Windows_NT)
# WIN32
PLATFORM = __MINGW__
else
# UNIX
PLATFORM = __UNIX__
endif

TOP = ../..

# -- compilers
ifeq ($(PLATFORM),__DJGPP__)
CC = $(DJGPP_HOME)/bin/gcc.exe
CXX = $(DJGPP_HOME)/bin/gxx.exe
else
CC = gcc
CXX = g++
endif

# -- on EV3 BRICK
ifeq ($(PLATFORM),__UNIX__)
Expand All @@ -57,18 +50,12 @@ PP = @echo makefile: warning: preprocessing step is skipped,
endif

# -- output subdirectory
ifeq ($(PLATFORM),__DJGPP__)
D_PLATFORM = djgpp
else

ifeq ($(PLATFORM),__MINGW__)
D_PLATFORM = mingw
else
D_PLATFORM =
endif

endif

# -- yupp import directories
D_YU = $(TOP)/source/ev3

Expand Down Expand Up @@ -148,12 +135,6 @@ CFLAGS = $(addprefix -I, $(D_H)) -O2 -W -Wall -Wno-comment -std=gnu99
CXXFLAGS = $(addprefix -I, $(D_H)) -O2 -ffast-math -funroll-loops -fno-exceptions -fomit-frame-pointer -g -W -Wall -Wno-comment
ASMFLAGS = -Wall

# -- platform specific options
ifeq ($(PLATFORM),__DJGPP__)
BUFSIZE = 16k
MINSTACK = 1024k
endif

# ---------------------------------
# files lists
# ---------------------------------
Expand All @@ -166,6 +147,7 @@ S_YUCXX = $(wildcard $(addsuffix /*$(E_YUCXX), $(D_CXX)))
G_CXX = $(addsuffix $(E_CXX), $(basename $(S_YUCXX)))
G_C = $(addsuffix $(E_C), $(basename $(S_YUC)))
G_H = $(addsuffix $(E_H), $(basename $(S_YUH)))

S_C = $(sort $(wildcard $(addsuffix /*$(E_C), $(D_C))) $(G_C))
S_CXX = $(sort $(wildcard $(addsuffix /*$(E_CXX), $(D_CXX))) $(G_CXX))
S_ASM = $(wildcard $(addsuffix /*$(E_ASM), $(D_ASM)))
Expand Down Expand Up @@ -195,14 +177,8 @@ endef
endif

# -- optional final tools
ifeq ($(PLATFORM),__DJGPP__)
define final
stubedit $1 minstack=$(MINSTACK) bufsize=$(BUFSIZE)
endef
else
define final
endef
endif

# -- removal list
R = $(F_BIN) $(O)
Expand Down
Binary file modified lib/mingw/libev3dev-c.a
Binary file not shown.
Binary file removed lib/mingw/libev3dev.a
Binary file not shown.
38 changes: 3 additions & 35 deletions source/ev3/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,21 @@
# -- binary name (without prefix and extension)
BIN = ev3dev-c

ifeq ($(OS),Windows_NT)
# -- platform (core)
# ARM Cortex-M3: __MDKARM__
# DOS: __DJGPP__
# WIN32: __MINGW__
# UNIX: __UNIX__
ifeq ($(OS),Windows_NT)
# WIN32
PLATFORM = __MINGW__
else
# UNIX
PLATFORM = __UNIX__
endif

TOP = ../..

# -- compilers
ifeq ($(PLATFORM),__DJGPP__)
CC = $(DJGPP_HOME)/bin/gcc.exe
CXX = $(DJGPP_HOME)/bin/gxx.exe
AR = $(DJGPP_HOME)/bin/ar.exe
else
CC = gcc
CXX = g++
AR = ar
endif

# -- on EV3 BRICK
ifeq ($(PLATFORM),__UNIX__)
Expand All @@ -56,31 +48,19 @@ PP = @echo makefile: warning: preprocessing step is skipped,
endif

# -- output subdirectory
ifeq ($(PLATFORM),__DJGPP__)
D_PLATFORM = djgpp
else

ifeq ($(PLATFORM),__MINGW__)
D_PLATFORM = mingw
else
D_PLATFORM =
endif

endif

# -- install directory
ifeq ($(PLATFORM),__DJGPP__)
D_INSTALL = $(DJGPP_HOME)
else

ifeq ($(PLATFORM),__MINGW__)
D_INSTALL = $(MINGW_HOME)
else
D_INSTALL = /usr/local
endif

endif

# -- yupp import directories
D_YU = $(TOP)/source/ev3

Expand Down Expand Up @@ -152,12 +132,6 @@ endif

ASMFLAGS = -Wall

# -- platform specific options
ifeq ($(PLATFORM),__DJGPP__)
BUFSIZE = 16k
MINSTACK = 1024k
endif

# ---------------------------------
# files lists
# ---------------------------------
Expand Down Expand Up @@ -200,14 +174,8 @@ endef
endif

# -- optional final tools
ifeq ($(PLATFORM),__DJGPP__)
define final
stubedit $1 minstack=$(MINSTACK) bufsize=$(BUFSIZE)
endef
else
define final
endef
endif

# -- removal list
R = $(F_BIN) $(O)
Expand Down

0 comments on commit d28677d

Please sign in to comment.