New ReactOS icon by Mindflyer. Just give ros a fresh look :)
[reactos.git] / reactos / tools / buildno / Makefile
1 PATH_TO_TOP = ../..
2
3 TARGET = buildno$(EXE_POSTFIX)
4
5 all: $(TARGET)
6
7 OBJECTS = buildno.o XML.o exception.o ssprintf.o
8
9 CLEAN_FILES = *.o buildno$(EXE_POSTFIX)
10
11 HOST_CXXFLAGS = -I$(PATH_TO_TOP)/include/reactos -g -Wall -Werror
12
13 buildno.o: buildno.cpp $(PATH_TO_TOP)/include/reactos/version.h
14 $(HOST_CXX) $(HOST_CXXFLAGS) -o buildno.o -c buildno.cpp
15
16 XML.o: XML.cpp
17 $(HOST_CXX) $(HOST_CXXFLAGS) -o XML.o -c XML.cpp
18
19 exception.o: exception.cpp
20 $(HOST_CXX) $(HOST_CXXFLAGS) -o exception.o -c exception.cpp
21
22 ssprintf.o: ssprintf.cpp
23 $(HOST_CXX) $(HOST_CXXFLAGS) -o ssprintf.o -c ssprintf.cpp
24
25 buildno$(EXE_POSTFIX): $(OBJECTS)
26 $(HOST_CXX) -g $(OBJECTS) -o $(TARGET)
27 @$(EXE_PREFIX)buildno$(EXE_POSTFIX)
28
29 ifeq ($(HOST),mingw32-linux)
30 clean:
31 -rm -f *.o $(TARGET)
32 -rm $(PATH_TO_TOP)/include/reactos/buildno.h
33 endif
34 ifneq ($(HOST),mingw32-linux)
35 clean:
36 -del *.o $(TARGET)
37 -del ..\..\include\reactos\buildno.h
38 endif
39
40 .PHONY: clean
41
42 include $(PATH_TO_TOP)/rules.mak