mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
rgenstat makefile
svn path=/trunk/; revision=16808
This commit is contained in:
parent
d04a2e183c
commit
cfa4cb7478
1 changed files with 51 additions and 0 deletions
51
reactos/tools/rgenstat/rgenstat.mak
Normal file
51
reactos/tools/rgenstat/rgenstat.mak
Normal file
|
@ -0,0 +1,51 @@
|
|||
RGENSTAT_BASE = $(TOOLS_BASE_)rgenstat
|
||||
RGENSTAT_BASE_ = $(RGENSTAT_BASE)$(SEP)
|
||||
RGENSTAT_INT = $(INTERMEDIATE_)$(RGENSTAT_BASE)
|
||||
RGENSTAT_INT_ = $(RGENSTAT_INT)$(SEP)
|
||||
RGENSTAT_OUT = $(OUTPUT_)$(RGENSTAT_BASE)
|
||||
RGENSTAT_OUT_ = $(RGENSTAT_OUT)$(SEP)
|
||||
|
||||
$(RGENSTAT_INT): | $(TOOLS_INT)
|
||||
$(ECHO_MKDIR)
|
||||
${mkdir} $@
|
||||
|
||||
ifneq ($(INTERMEDIATE),$(OUTPUT))
|
||||
$(RGENSTAT_OUT): | $(TOOLS_OUT)
|
||||
$(ECHO_MKDIR)
|
||||
${mkdir} $@
|
||||
endif
|
||||
|
||||
RGENSTAT_TARGET = \
|
||||
$(EXEPREFIX)$(RGENSTAT_OUT_)rgenstat$(EXEPOSTFIX)
|
||||
|
||||
RGENSTAT_SOURCES = $(addprefix $(RGENSTAT_BASE_), \
|
||||
rgenstat.c \
|
||||
llmosrt.c \
|
||||
)
|
||||
|
||||
RGENSTAT_OBJECTS = \
|
||||
$(addprefix $(INTERMEDIATE_), $(RGENSTAT_SOURCES:.c=.o))
|
||||
|
||||
RGENSTAT_HOST_CFLAGS = -g -Werror -Wall
|
||||
|
||||
RGENSTAT_HOST_LFLAGS = -g
|
||||
|
||||
$(RGENSTAT_TARGET): $(RGENSTAT_OBJECTS) | $(RGENSTAT_OUT)
|
||||
$(ECHO_LD)
|
||||
${host_gcc} $(RGENSTAT_OBJECTS) $(RGENSTAT_HOST_LFLAGS) -o $@
|
||||
|
||||
$(RGENSTAT_INT_)rgenstat.o: $(RGENSTAT_BASE_)rgenstat.c | $(RGENSTAT_INT)
|
||||
$(ECHO_CC)
|
||||
${host_gcc} $(RGENSTAT_HOST_CFLAGS) -c $< -o $@
|
||||
|
||||
$(RGENSTAT_INT_)llmosrt.o: $(RGENSTAT_BASE_)llmosrt.c | $(RGENSTAT_INT)
|
||||
$(ECHO_CC)
|
||||
${host_gcc} $(RGENSTAT_HOST_CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: rgenstat
|
||||
rgenstat: $(RGENSTAT_TARGET)
|
||||
|
||||
.PHONY: rgenstat_clean
|
||||
rgenstat_clean: $(RGENSTAT_TARGET)
|
||||
-@$(rm) $(RGENSTAT_TARGET) $(RGENSTAT_OBJECTS) 2>$(NUL)
|
||||
clean: rgenstat_clean
|
Loading…
Reference in a new issue