RosBE/Tools/makefile
Daniel Reimer 072ab6106b Preparations for GCC 4.5.1 mingw-w64 and RosBE Version 1.6. Not working yet.
svn path=/trunk/tools/RosBE/; revision=1225
2010-08-15 12:14:41 +00:00

43 lines
845 B
Makefile

# makefile - Simple makefile to build the various RosBE tools.
.PHONY: all clean
CC := gcc
CFLAGS := ${HOST_CFLAGS} -Wall -O2 -o
STRIP := strip
ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
# Windows host
RM := del /f
SUFFIX := .exe
else
ifeq ($(word 1,$(shell gcc -dumpmachine)),i686-w64-mingw32)
# Windows host
RM := del /f
SUFFIX := .exe
else
# Unix host
RM := rm -f
SUFFIX :=
endif
endif
all: cpucount scut getincludes
cpucount: cpucount.c
${CC} ${CFLAGS} cpucount$(SUFFIX) cpucount.c
$(STRIP) cpucount$(SUFFIX)
getincludes: getincludes.c
${CC} ${CFLAGS} getincludes$(SUFFIX) getincludes.c
$(STRIP) getincludes$(SUFFIX)
scut: scut.c
${CC} ${CFLAGS} scut$(SUFFIX) scut.c
$(STRIP) scut$(SUFFIX)
clean:
$(RM) cpucount$(SUFFIX)
$(RM) getincludes$(SUFFIX)
$(RM) scut$(SUFFIX)