update for HEAD-2003021201
[reactos.git] / lib / user32 / Makefile
1 # $Id$
2
3 PATH_TO_TOP = ../..
4
5 TARGET_TYPE = dynlink
6
7 TARGET_NAME = user32
8
9 TARGET_BASE = 0x77e70000
10
11 TARGET_SDKLIBS = ntdll.a kernel32.a gdi32.a
12
13 TARGET_CFLAGS = \
14  -I./include \
15  -DUNICODE \
16  -Wall \
17  -Werror \
18  -fno-builtin
19
20 TARGET_LFLAGS = -nostartfiles -nostdlib
21
22 TARGET_OBJECTS = $(TARGET_NAME).o
23
24 TARGET_CLEAN = controls/*.o misc/*.o windows/*.o
25
26 include $(PATH_TO_TOP)/rules.mak
27
28 include $(TOOLS_PATH)/helper.mk
29
30 CONTROLS_OBJECTS = \
31         controls/combobox.o \
32         controls/listbox.o \
33         controls/scrollbar.o
34
35 MISC_OBJECTS = \
36         misc/dde.o \
37         misc/desktop.o \
38         misc/display.o \
39         misc/dllmain.o \
40         misc/exit.o \
41         misc/sprintf.o \
42         misc/stubs.o \
43         misc/winhelp.o \
44         misc/win32k.o \
45         misc/winsta.o \
46         misc/resources.o \
47         misc/object.o \
48         misc/timer.o
49
50 WINDOWS_OBJECTS = \
51         windows/class.o \
52         windows/message.o \
53         windows/window.o \
54         windows/defwnd.o \
55         windows/accel.o \
56         windows/bitmap.o \
57         windows/clipboard.o \
58         windows/cursor.o \
59         windows/dc.o \
60         windows/dialog.o \
61         windows/draw.o \
62         windows/font.o \
63         windows/hook.o \
64         windows/icon.o \
65         windows/input.o \
66         windows/mdi.o \
67         windows/menu.o \
68         windows/messagebox.o \
69         windows/nonclient.o \
70         windows/paint.o \
71         windows/prop.o \
72         windows/rect.o \
73         windows/text.o
74
75 OBJECTS = \
76   $(MISC_OBJECTS) \
77   $(WINDOWS_OBJECTS) \
78   $(CONTROLS_OBJECTS)
79
80 $(TARGET_NAME).o: $(OBJECTS)
81         $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
82
83 # EOF