update for HEAD-2003021201
[reactos.git] / lib / kernel32 / makefile
1 # $Id$
2
3 PATH_TO_TOP = ../..
4
5 TARGET_TYPE = dynlink
6
7 TARGET_NAME = kernel32
8
9 TARGET_BASE = 0x77f00000
10
11 TARGET_CFLAGS = -DKERNEL32_BASE=$(TARGET_DLLBASE) -I./
12
13 TARGET_LFLAGS = -nostartfiles
14
15 TARGET_SDKLIBS = ntdll.a
16
17 TARGET_GCCLIBS = gcc
18
19 TARGET_PCH = k32.h
20
21 TARGET_OBJECTS = $(TARGET_NAME).o
22
23 TARGET_CLEAN = except/*.o file/*.o mem/*.o misc/*.o nls/*.o \
24              process/*.o string/*.o synch/*.o thread/*.o
25
26
27 include $(PATH_TO_TOP)/rules.mak
28
29 include $(TOOLS_PATH)/helper.mk
30
31 depends:
32         make -f errormsg.mak
33
34 .PHONY: depends
35
36 SYNCH_OBJECTS = synch/critical.o synch/event.o synch/intrlck.o synch/mutex.o \
37                 synch/sem.o synch/timer.o synch/wait.o
38
39 MISC_OBJECTS = misc/error.o misc/atom.o misc/handle.o misc/env.o \
40                misc/dllmain.o misc/comm.o misc/errormsg.o \
41                misc/console.o misc/time.o misc/toolhelp.o \
42                misc/stubs.o misc/ldr.o misc/res.o \
43                misc/debug.o misc/sysinfo.o misc/profile.o \
44                misc/mbchars.o misc/muldiv.o misc/getname.o \
45                misc/perfcnt.o
46
47 FILE_OBJECTS = file/file.o file/curdir.o file/lfile.o file/dir.o \
48                file/iocompl.o file/volume.o file/deviceio.o file/dosdev.o \
49                file/create.o file/find.o file/copy.o file/pipe.o \
50                file/move.o file/lock.o file/rw.o file/delete.o \
51                file/npipe.o file/tape.o file/mailslot.o file/backup.o \
52                file/cnotify.o
53
54 MEM_OBJECTS = mem/global.o mem/heap.o mem/isbad.o mem/local.o \
55               mem/procmem.o mem/section.o mem/virtual.o
56
57
58 NLS_OBJECTS =  nls/codepage.o nls/cpmisc.o \
59  nls/cptable.o nls/lctable.o \
60  nls/lcAFK.o nls/lcBEL.o nls/lcBGR.o nls/lcCAT.o \
61  nls/lcCSY.o nls/lcDAN.o nls/lcDEA.o nls/lcDEC.o \
62  nls/lcDEL.o nls/lcDES.o nls/lcDEU.o nls/lcELL.o \
63  nls/lcENA.o nls/lcENB.o nls/lcENC.o nls/lcENG.o \
64  nls/lcENI.o nls/lcENJ.o nls/lcENL.o nls/lcENS.o \
65  nls/lcENT.o nls/lcENU.o nls/lcENZ.o nls/lcESA.o \
66  nls/lcESB.o nls/lcESC.o nls/lcESD.o nls/lcESE.o \
67  nls/lcESF.o nls/lcESG.o nls/lcESH.o nls/lcESI.o \
68  nls/lcESL.o nls/lcESM.o nls/lcESN.o nls/lcESO.o \
69  nls/lcESP.o nls/lcESR.o nls/lcESS.o nls/lcESU.o \
70  nls/lcESV.o nls/lcESY.o nls/lcESZ.o nls/lcETI.o \
71  nls/lcEUQ.o nls/lcFIN.o nls/lcFOS.o nls/lcFRA.o \
72  nls/lcFRB.o nls/lcFRC.o nls/lcFRL.o nls/lcFRS.o \
73  nls/lcHRV.o nls/lcHUN.o nls/lcIND.o nls/lcISL.o \
74  nls/lcITA.o nls/lcITS.o nls/lcLTH.o nls/lcLVI.o \
75  nls/lcNLB.o nls/lcNLD.o nls/lcNON.o nls/lcNOR.o \
76  nls/lcPLK.o nls/lcPTB.o nls/lcPTG.o nls/lcROM.o \
77  nls/lcRUS.o nls/lcSKY.o nls/lcSLV.o nls/lcSQI.o \
78  nls/lcSRB.o nls/lcSRL.o nls/lcSVE.o nls/lcSVF.o \
79  nls/lcTRK.o nls/lcUKR.o\
80  nls/locale.o 
81
82 NLS_UNUSED_OBJECTS =  nls/mbtowc.o nls/wctomb.o nls/ole2nls.o
83
84 NLS_CP_OBJECTS =  \
85  nls/cp37.o nls/cp437.o nls/cp500.o nls/cp737.o nls/cp775.o \
86  nls/cp850.o nls/cp852.o nls/cp855.o nls/cp857.o \
87  nls/cp860.o nls/cp861.o nls/cp863.o nls/cp865.o \
88  nls/cp866.o nls/cp869.o nls/cp875.o nls/cp1026.o \
89  nls/cp1250.o nls/cp1251.o nls/cp1252.o nls/cp1253.o \
90  nls/cp1254.o nls/cp1255.o nls/cp1256.o nls/cp1257.o \
91  nls/cp10000.o nls/cp10006.o nls/cp10007.o \
92  nls/cp10029.o nls/cp10079.o nls/cp10081.o
93
94
95 THREAD_OBJECTS = \
96         thread/fiber.o  \
97         thread/thread.o \
98         thread/tls.o
99
100 PROCESS_OBJECTS = \
101         process/proc.o \
102         process/cmdline.o \
103         process/create.o \
104         process/session.o
105
106 STRING_OBJECTS = string/lstring.o
107
108 EXCEPT_OBJECTS = except/except.o
109
110 OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
111           $(PROCESS_OBJECTS) $(STRING_OBJECTS) $(MEM_OBJECTS) \
112           $(SYNCH_OBJECTS) $(EXCEPT_OBJECTS)
113
114 #$(NLS_OBJECTS)
115
116
117 $(TARGET_NAME).o: $(OBJECTS) errcodes.rc
118         $(LD) -r $(OBJECTS) -o $(TARGET_NAME).o
119
120 %/TAGS:
121         etags -o $(@D)/TAGS $(@D)/\*.c
122
123 etags: except/TAGS file/TAGS mem/TAGS misc/TAGS nls/TAGS process/TAGS string/TAGS synch/TAGS thread/TAGS
124         etags -i except/TAGS -i file/TAGS -i mem/TAGS -i misc/TAGS -i nls/TAGS -i process/TAGS -i string/TAGS -i synch/TAGS -i thread/TAGS