RosBE/Tools/makefile
Colin Finck 747fe03ca4 - Make scut fully compilable under both Windows and Unix
- Move it to the RosBE/Tools directory, where all the other portable tools are

svn path=/trunk/tools/RosBE/; revision=627
2007-12-19 22:01:44 +00:00

33 lines
541 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
# Unix host
RM := rm -f
SUFFIX :=
endif
all: cpucount scut
cpucount: cpucount.c
${CC} ${CFLAGS} cpucount$(SUFFIX) cpucount.c
$(STRIP) cpucount$(SUFFIX)
scut: scut.c
${CC} ${CFLAGS} scut$(SUFFIX) scut.c
$(STRIP) scut$(SUFFIX)
clean:
$(RM) cpucount$(SUFFIX)
$(RM) scut$(SUFFIX)