Generate proxy makefiles in output tree.
[reactos.git] / reactos / tools / ms2ps / Makefile
1 #
2 # Simple preprocessor which converts a source file from ms-seh to pseh.
3 #
4 PATH_TO_TOP = ../..
5
6 TARGET = ms2ps$(EXE_POSTFIX)
7
8 all: $(TARGET)
9
10 OBJECTS = ms2ps.o
11
12 CLEAN_FILES = *.o ms2ps$(EXE_POSTFIX)
13
14 HOST_CFLAGS = -I. -Werror -Wall
15
16 ms2ps.o: ms2ps.cpp
17 $(HOST_CC) $(HOST_CFLAGS) -c ms2ps.cpp -o ms2ps.o
18
19 ms2ps$(EXE_POSTFIX): $(OBJECTS)
20 $(HOST_CC) $(OBJECTS) -o ms2ps$(EXE_POSTFIX) -lstdc++
21
22 ifeq ($(HOST),mingw32-linux)
23 clean:
24 rm -f *.o
25 rm -f ms2ps$(EXE_POSTFIX)
26 endif
27 ifeq ($(HOST),mingw32-windows)
28 clean:
29 -del *.o
30 -del ms2ps$(EXE_POSTFIX)
31 endif
32
33 .phony: clean
34
35 include $(PATH_TO_TOP)/rules.mak
36
37 # EOF