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