detect PCH support ( not doing anything more than detection yet )
[reactos.git] / reactos / tools / cdmake / makefile
1 CDMAKE_BASE = tools$(SEP)cdmake
2
3 CDMAKE_TARGET = \
4 $(ROS_INTERMEDIATE)$(CDMAKE_BASE)$(SEP)cdmake$(EXEPOSTFIX)
5
6 CDMAKE_SOURCES = \
7 $(CDMAKE_BASE)$(SEP)cdmake.c \
8 $(CDMAKE_BASE)$(SEP)llmosrt.c
9
10 CDMAKE_OBJECTS = \
11 $(CDMAKE_SOURCES:.c=.o)
12
13 CDMAKE_HOST_CFLAGS = -Iinclude -g -Werror -Wall
14
15 CDMAKE_HOST_LFLAGS = -g
16
17 $(CDMAKE_TARGET): $(CDMAKE_OBJECTS)
18 ${host_gcc} $(CDMAKE_OBJECTS) $(CDMAKE_HOST_CFLAGS) -o $(CDMAKE_TARGET)
19
20 $(CDMAKE_OBJECTS): %.o : %.c
21 ${host_gcc} $(CDMAKE_CFLAGS) -c $< -o $@
22
23 .PHONY: cdmake_clean
24 cdmake_clean:
25 -@$(rm) $(CDMAKE_TARGET) $(CDMAKE_OBJECTS) 2>$(NUL)
26 clean: cdmake_clean