Sylvain Petreolle <spetreolle@yahoo.fr>
[reactos.git] / reactos / tools / winebuild / Makefile
1 #
2 # winebuild
3 #
4 PATH_TO_TOP = ../..
5
6 include $(PATH_TO_TOP)/rules.mak
7
8 TARGET = winebuild$(EXE_POSTFIX)
9
10 all: $(TARGET)
11
12 # relay.o spec16.o
13 OBJECTS = \
14 import.o \
15 main.o \
16 parser.o \
17 res16.o \
18 res32.o \
19 spec32.o \
20 utils.o \
21 mkstemps.o
22
23 CLEAN_FILES = *.o $(TARGET)
24
25 HOST_CFLAGS = -D__USE_W32API -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/include/wine -I$(W32API_PATH)/include
26
27 %.o: %.c
28 $(HOST_CC) $(HOST_CFLAGS) -c $< -o $@
29
30 $(TARGET): $(OBJECTS)
31 $(HOST_CC) $(OBJECTS) -o $(TARGET)
32
33 ifeq ($(HOST),mingw32-linux)
34 clean:
35 rm -f $(CLEAN_FILES)
36 endif
37 ifneq ($(HOST),mingw32-linux)
38 clean:
39 del $(CLEAN_FILES)
40 endif
41
42 .PHONY: clean
43