remove obsoleted makefiles and config files, tools/Makefile -> tools/tools.mak, fix...
[reactos.git] / reactos / tools / buildno / makefile
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
31 # BUILDNO_H is defined from the top-level makefile now...
32 #BUILDNO_H = .$(SEP)include$(SEP)reactos$(SEP)buildno.h
33
34 .PHONY: buildno_h
35 buildno_h: $(BUILDNO_H)
36
37 $(BUILDNO_H): $(BUILDNO_TARGET)
38 $(BUILDNO_TARGET) $(BUILDNO_H)