440f2afff19241732d7e5fbb3152d798b161801a
[reactos.git] / reactos / subsys / win32k / makefile
1 # $Id: makefile,v 1.69 2003/07/12 12:45:29 gvg Exp $
2
3 PATH_TO_TOP = ../..
4
5 TARGET_TYPE = subsystem
6
7 TARGET_NAME = win32k
8
9 TARGET_BASE = 0x0
10
11 TARGET_ENTRY = _DllMain@8
12
13 TARGET_DDKLIBS = freetype.a
14
15 FREETYPE_DIR = $(PATH_TO_TOP)/lib/freetype
16
17 include $(PATH_TO_TOP)/config
18
19 ifeq ($(DBG), 1)
20 CFLAGS_DBG := -g
21 else
22 CFLAGS_DBG :=
23 endif
24
25 TARGET_CFLAGS =\
26 $(CFLAGS_DBG) \
27 -I$(PATH_TO_TOP)/ntoskrnl/include \
28 -I$(FREETYPE_DIR)/include \
29 -DUNICODE \
30 -Wall
31
32 TARGET_LFLAGS =\
33 $(PATH_TO_TOP)/dk/nkm/lib/freetype.a \
34 $(PATH_TO_TOP)/dk/w32/lib/rosrtl.a \
35 --disable-stdcall-fixup
36
37 ENG_OBJECTS= eng/debug.o eng/mem.o eng/brush.o eng/bitblt.o eng/clip.o \
38 eng/copybits.o eng/device.o eng/handle.o eng/lineto.o eng/paint.o \
39 eng/palette.o eng/perfcnt.o eng/surface.o eng/xlate.o eng/transblt.o \
40 eng/mouse.o eng/misc.o eng/nls.o eng/sort.o
41
42 MAIN_OBJECTS = main/dllmain.o main/svctabm.o
43
44 MISC_OBJECTS = misc/driver.o misc/error.o misc/math.o misc/object.o
45
46 LDR_OBJECTS = ldr/loader.o
47
48 NTUSER_OBJECTS = ntuser/class.o ntuser/guicheck.o ntuser/hook.o \
49 ntuser/message.o ntuser/msgqueue.o ntuser/stubs.o \
50 ntuser/userobj.o ntuser/window.o ntuser/winsta.o \
51 ntuser/input.o ntuser/keyboard.o ntuser/callback.o \
52 ntuser/winpos.o ntuser/painting.o ntuser/metric.o \
53 ntuser/windc.o ntuser/prop.o ntuser/scrollbar.o \
54 ntuser/timer.o ntuser/misc.o
55
56 OBJECTS_OBJECTS = objects/bitmaps.o objects/brush.o objects/cliprgn.o \
57 objects/color.o objects/coord.o objects/dc.o \
58 objects/fillshap.o objects/gdiobj.o objects/icm.o \
59 objects/line.o objects/metafile.o objects/paint.o \
60 objects/path.o objects/pen.o objects/print.o \
61 objects/region.o objects/text.o objects/wingl.o \
62 objects/bezier.o objects/objconv.o objects/dib.o \
63 objects/palette.o objects/rect.o objects/polyfill.o \
64 objects/cursoricon.o
65
66 DIB_OBJECTS = dib/dib.o dib/dib1bpp.o dib/dib4bpp.o dib/dib8bpp.o dib/dib16bpp.o \
67 dib/dib24bpp.o dib/dib32bpp.o
68
69 STUBS_OBJECTS = stubs/stubs.o
70
71 TARGET_OBJECTS = \
72 $(ENG_OBJECTS) $(MAIN_OBJECTS) $(MISC_OBJECTS) $(LDR_OBJECTS) \
73 $(NTUSER_OBJECTS) $(OBJECTS_OBJECTS) $(STUBS_OBJECTS) \
74 $(MATH_OBJECTS) $(FLOAT_OBJECTS) $(DIB_OBJECTS)
75
76 TARGET_CLEAN = $(DEP_FILES) \
77 dib/*.o \
78 eng/*.o \
79 ldr/*.o \
80 main/*.o \
81 misc/*.o \
82 ntuser/*.o \
83 objects/*.o \
84 stubs/*.o
85
86 include $(PATH_TO_TOP)/rules.mak
87
88 include $(TOOLS_PATH)/helper.mk
89
90 # Automatic dependency tracking
91 DEP_OBJECTS := $(TARGET_OBJECTS)
92 DEP_EXCLUDE_FILTER := main/svctabm.d
93 #include $(PATH_TO_TOP)/tools/depend.mk
94
95 main/svctabm.o: main/svctab.c
96
97 .dummy:
98
99 %/TAGS: .dummy
100 etags $(@D)/\*.c -o $(@D)/TAGS
101
102 etags: TAGS
103 TAGS: main/TAGS eng/TAGS ldr/TAGS misc/TAGS objects/TAGS stubs/TAGS ntuser/TAGS dib/TAGS
104 etags -i main/TAGS -i eng/TAGS -i ldr/TAGS -i misc/TAGS -i objects/TAGS -i stubs/TAGS -i ntuser/TAGS -i dib/TAGS
105
106 # EOF