mirror of
https://github.com/reactos/RosBE.git
synced 2024-12-02 16:36:41 +00:00
747fe03ca4
- Move it to the RosBE/Tools directory, where all the other portable tools are svn path=/trunk/tools/RosBE/; revision=627
33 lines
541 B
Makefile
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)
|