mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00

* tools/rtouch.c: New file. * rules.mak (ROS_USE_PCH): Default to no. (RTOUCH): Define. * tools/Makefile: Add rtouch utility. * tools/helper.mk: Support precompiled headers. svn path=/trunk/; revision=4006
90 lines
2.2 KiB
Makefile
90 lines
2.2 KiB
Makefile
PATH_TO_TOP = ..
|
|
|
|
TOOLS = \
|
|
buildno$(EXE_POSTFIX) \
|
|
depends$(EXE_POSTFIX) \
|
|
rcopy$(EXE_POSTFIX) \
|
|
rdel$(EXE_POSTFIX) \
|
|
rmkdir$(EXE_POSTFIX) \
|
|
rrmdir$(EXE_POSTFIX) \
|
|
rsym$(EXE_POSTFIX) \
|
|
rtouch$(EXE_POSTFIX)
|
|
|
|
CLEAN_FILES = $(TOOLS)
|
|
|
|
all: $(TOOLS) wmc_directory_target
|
|
|
|
buildno$(EXE_POSTFIX): buildno.c ../include/reactos/version.h
|
|
$(HOST_CC) $(CFLAGS) -o buildno$(EXE_POSTFIX) buildno.c
|
|
$(EXE_PREFIX)buildno$(EXE_POSTFIX)
|
|
|
|
depends$(EXE_POSTFIX): depends.c
|
|
$(HOST_CC) $(CFLAGS) -o depends$(EXE_POSTFIX) depends.c
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
rcopy$(EXE_POSTFIX): rcopy.c
|
|
$(HOST_CC) $(CFLAGS) -DUNIX_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
rcopy$(EXE_POSTFIX): rcopy.c
|
|
$(HOST_CC) $(CFLAGS) -DDOS_PATHS rcopy.c -o rcopy$(EXE_POSTFIX)
|
|
endif
|
|
|
|
rdel$(EXE_POSTFIX): rdel.c
|
|
$(HOST_CC) $(CFLAGS) rdel.c -o rdel$(EXE_POSTFIX)
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
rmkdir$(EXE_POSTFIX): rmkdir.c
|
|
$(HOST_CC) $(CFLAGS) -DUNIX_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
rmkdir$(EXE_POSTFIX): rmkdir.c
|
|
$(HOST_CC) $(CFLAGS) -DDOS_PATHS rmkdir.c -o rmkdir$(EXE_POSTFIX)
|
|
endif
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
rrmdir$(EXE_POSTFIX): rrmdir.c
|
|
$(HOST_CC) $(CFLAGS) -DUNIX_PATHS rrmdir.c -o rrmdir$(EXE_POSTFIX)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
rrmdir$(EXE_POSTFIX): rrmdir.c
|
|
$(HOST_CC) $(CFLAGS) -DDOS_PATHS rrmdir.c -o rrmdir$(EXE_POSTFIX)
|
|
endif
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
rsym$(EXE_POSTFIX): rsym.c
|
|
$(HOST_CC) $(CFLAGS) -DUNIX_PATHS rsym.c -o rsym$(EXE_POSTFIX)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
rsym$(EXE_POSTFIX): rsym.c
|
|
$(HOST_CC) $(CFLAGS) -DDOS_PATHS rsym.c -o rsym$(EXE_POSTFIX)
|
|
endif
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
rtouch$(EXE_POSTFIX): rtouch.c
|
|
$(HOST_CC) $(CFLAGS) -DUNIX_PATHS rtouch.c -o rtouch$(EXE_POSTFIX)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
rtouch$(EXE_POSTFIX): rtouch.c
|
|
$(HOST_CC) $(CFLAGS) -DDOS_PATHS rtouch.c -o rtouch$(EXE_POSTFIX)
|
|
endif
|
|
|
|
|
|
wmc_directory_target:
|
|
make -C wmc wmc$(EXE_POSTFIX)
|
|
|
|
ifeq ($(HOST),mingw32-linux)
|
|
clean:
|
|
make -C wmc clean
|
|
rm mkconfig
|
|
rm $(TOOLS)
|
|
endif
|
|
ifeq ($(HOST),mingw32-windows)
|
|
clean:
|
|
make -C wmc clean
|
|
del *$(EXE_POSTFIX)
|
|
endif
|
|
|
|
.PHONY: all clean
|
|
|
|
include $(PATH_TO_TOP)/rules.mak
|