remove obsoleted makefiles and config files, tools/Makefile -> tools/tools.mak, fix...
[reactos.git] / reactos / tools / wpp / Makefile
1 WPP_BASE = tools$(SEP)wpp
2
3 WPP_TARGET = \
4 $(ROS_INTERMEDIATE)$(WPP_BASE)$(SEP)libwpp.a
5
6 WPP_SOURCES = \
7 $(WPP_BASE)$(SEP)lex.yy.c \
8 $(WPP_BASE)$(SEP)preproc.c \
9 $(WPP_BASE)$(SEP)wpp.c \
10 $(WPP_BASE)$(SEP)wpp.tab.c
11
12 WPP_OBJECTS = \
13 $(WPP_SOURCES:.c=.o)
14
15 WPP_HOST_CFLAGS = -D__USE_W32API -I$(WPP_BASE) -Iinclude -Iinclude/wine -g
16
17 $(WPP_TARGET): $(WPP_OBJECTS)
18 $(ECHO_AR)
19 ${host_ar} -rc $(WPP_TARGET) $(WPP_OBJECTS)
20
21 $(WPP_OBJECTS): %.o : %.c
22 $(ECHO_CC)
23 ${host_gcc} $(WPP_HOST_CFLAGS) -c $< -o $@
24
25 .PHONY: wpp_clean
26 wpp_clean:
27 -@$(rm) $(WPP_TARGET) $(WPP_OBJECTS) 2>$(NUL)
28 clean: wpp_clean