mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 03:19:40 +00:00
82cd021a47
svn path=/trunk/RosBE/; revision=1326
38 lines
693 B
Makefile
38 lines
693 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
|
|
|
|
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)
|