rename more makefiles, preparation for local makefiles to work with xml build system
[reactos.git] / reactos / tools / buildno / buildno.mak
1 BUILDNO_BASE = tools$(SEP)buildno
2
3 BUILDNO_TARGET = \
4 $(EXEPREFIX)$(BUILDNO_BASE)$(SEP)buildno$(EXEPOSTFIX)
5
6 BUILDNO_SOURCES = \
7 $(BUILDNO_BASE)$(SEP)buildno.cpp \
8 $(BUILDNO_BASE)$(SEP)exception.cpp \
9 $(BUILDNO_BASE)$(SEP)ssprintf.cpp \
10 $(BUILDNO_BASE)$(SEP)XML.cpp
11
12 BUILDNO_OBJECTS = \
13 $(BUILDNO_SOURCES:.cpp=.o)
14
15 BUILDNO_HOST_CFLAGS = -Iinclude/reactos -g -Werror -Wall
16
17 BUILDNO_HOST_LFLAGS = -g
18
19 $(BUILDNO_TARGET): $(BUILDNO_OBJECTS)
20 $(ECHO_LD)
21 ${host_gpp} $(BUILDNO_OBJECTS) $(BUILDNO_HOST_CFLAGS) -o $(BUILDNO_TARGET)
22
23 $(BUILDNO_OBJECTS): %.o : %.cpp include$(SEP)reactos$(SEP)version.h
24 $(ECHO_CC)
25 ${host_gpp} $(BUILDNO_HOST_CFLAGS) -c $< -o $@
26
27 .PHONY: buildno_clean
28 buildno_clean:
29 -@$(rm) $(BUILDNO_TARGET) $(BUILDNO_OBJECTS) 2>$(NUL)
30 clean: buildno_clean
31
32 # BUILDNO_H is defined from the top-level makefile now...
33 #BUILDNO_H = .$(SEP)include$(SEP)reactos$(SEP)buildno.h
34
35 .PHONY: buildno_h
36 buildno_h: $(BUILDNO_H)
37
38 $(BUILDNO_H): $(BUILDNO_TARGET)
39 $(BUILDNO_TARGET) $(BUILDNO_H)
40
41 .PHONY: buildno_h_clean
42 buildno_h_clean:
43 -@$(rm) $(BUILDNO_H)
44 clean: buildno_h_clean