Fixed prototype for MmSetAddressRangeModified().
[reactos.git] / lib / rpcrt4 / Makefile.old
1 # $Id$
2 #
3 # ReactOS Operating System
4 #
5 PATH_TO_TOP = ../..
6
7 TARGET = midl rpcrt4 rpcss
8
9 BASE_CFLAGS = -I../../include
10
11 CFLAGS = $(CFLAGS) 
12
13 # require os code to explicitly request A/W version of structs/functions
14 CFLAGS += -D_DISABLE_TIDENTS
15
16 midl:
17         
18 DLLTARGET=$(TARGET).dll
19
20
21 all: $(DLLTARGET)
22
23 SYNCH_OBJECTS = synch/critical.o synch/event.o synch/wait.o synch/intrlck.o synch/timer.o
24
25 MISC_OBJECTS = misc/error.o misc/atom.o misc/handle.o misc/env.o misc/dllmain.o \
26                 misc/console.o misc/time.o misc/stubs.o misc/rtl.o misc/ldr.o misc/res.o
27
28 FILE_OBJECTS = file/file.o file/curdir.o file/lfile.o file/dir.o \
29                file/iocompl.o file/volume.o file/deviceio.o file/dosdev.o \
30                file/create.o file/find.o file/copy.o file/pipe.o \
31                file/move.o file/lock.o file/rw.o file/delete.o
32
33 MEM_OBJECTS = mem/virtual.o mem/heap.o mem/utils.o mem/section.o mem/isbad.o mem/procmem.o
34
35 NLS_OBJECTS =  nls/codepage.o nls/cpmisc.o nls/cptable.o\
36  nls/cp37.o nls/cp437.o nls/cp500.o nls/cp737.o nls/cp775.o nls/cp850.o nls/cp852.o nls/cp855.o nls/cp857.o\
37  nls/cp860.o nls/cp861.o nls/cp863.o nls/cp865.o nls/cp866.o nls/cp869.o nls/cp875.o nls/cp1026.o\
38  nls/cp1250.o nls/cp1251.o nls/cp1252.o nls/cp1253.o nls/cp1254.o nls/cp1255.o nls/cp1256.o nls/cp1257.o\
39  nls/cp10000.o nls/cp10006.o nls/cp10007.o nls/cp10029.o nls/cp10079.o nls/cp10081.o\
40  nls/lctable.o\
41  nls/lcAFK.o nls/lcBEL.o nls/lcBGR.o nls/lcCAT.o nls/lcCSY.o nls/lcDAN.o\
42  nls/lcDEA.o nls/lcDEC.o nls/lcDEL.o nls/lcDES.o nls/lcDEU.o\
43  nls/lcELL.o\
44  nls/lcENA.o nls/lcENB.o nls/lcENC.o nls/lcENG.o nls/lcENI.o nls/lcENJ.o nls/lcENL.o nls/lcENS.o nls/lcENT.o\
45  nls/lcENU.o nls/lcENZ.o\
46  nls/lcESA.o nls/lcESB.o nls/lcESC.o nls/lcESD.o nls/lcESE.o nls/lcESF.o nls/lcESG.o nls/lcESH.o nls/lcESI.o\
47  nls/lcESL.o nls/lcESM.o nls/lcESN.o nls/lcESO.o nls/lcESP.o nls/lcESR.o nls/lcESS.o nls/lcESU.o nls/lcESV.o\
48  nls/lcESY.o nls/lcESZ.o\
49  nls/lcETI.o nls/lcEUQ.o nls/lcFIN.o nls/lcFOS.o\
50  nls/lcFRA.o nls/lcFRB.o nls/lcFRC.o nls/lcFRL.o nls/lcFRS.o\
51  nls/lcHRV.o nls/lcHUN.o nls/lcIND.o nls/lcISL.o nls/lcITA.o nls/lcITS.o nls/lcLTH.o nls/lcLVI.o nls/lcNLB.o\
52  nls/lcNLD.o nls/lcNON.o nls/lcNOR.o nls/lcPLK.o nls/lcPTB.o nls/lcPTG.o nls/lcROM.o nls/lcRUS.o nls/lcSKY.o\
53  nls/lcSLV.o nls/lcSQI.o nls/lcSRB.o nls/lcSRL.o nls/lcSVE.o nls/lcSVF.o nls/lcTRK.o nls/lcUKR.o\
54  nls/locale.o nls/mbtowc.o nls/wctomb.o nls/ole2nls.o
55
56 THREAD_OBJECTS = thread/thread.o thread/tls.o
57
58 PROCESS_OBJECTS = process/proc.o process/cmdline.o process/create.o \
59                   process/lib.o
60
61 STRING_OBJECTS = string/lstring.o
62
63 INTERNAL_OBJECTS = internal/dprintf.o
64
65 EXCEPT_OBJECTS = except/except.o
66
67 RESOURCE_OBJECT = $(TARGET).coff
68
69
70 OBJECTS = $(MISC_OBJECTS) $(FILE_OBJECTS) $(THREAD_OBJECTS) \
71           $(PROCESS_OBJECTS) $(STRING_OBJECTS) $(MEM_OBJECTS) \
72           $(INTERNAL_OBJECTS) $(SYNCH_OBJECTS) $(EXCEPT_OBJECTS) \
73           $(RESOURCE_OBJECT)
74
75 CLEAN_FILES = except/*.o file/*.o internal/*.o mem/*.o misc/*.o nls/*.o  \
76               process/*.o string/*.o synch/*.o thread/*.o  \
77               $(TARGET).o $(TARGET).a junk.tmp base.tmp temp.exp \
78               $(TARGET).dll $(TARGET).sym $(TARGET).coff
79
80 nls/ole2nls.o: nls/ole2nls.c
81         $(CC) $(CFLAGS) -I. nls/ole2nls.c
82
83 $(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
84
85 $(TARGET).a: $(OBJECTS)
86         $(AR) csr $(TARGET).a $(OBJECTS)
87
88 $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
89         $(LD) \
90                 -r $(OBJECTS) \
91                 -o $(TARGET).o
92         $(DLLTOOL) \
93                 --dllname $(TARGET).dll \
94                 --def $(TARGET).def \
95                 --kill-at \
96                 --output-lib $(TARGET).a
97         $(CC) \
98                 -specs=k32_specs \
99                 -mdll \
100                 -o junk.tmp \
101                 -Wl,--base-file,base.tmp \
102                 $(TARGET).o \
103                 ../ntdll/ntdll.a
104         - $(RM) junk.tmp
105         $(DLLTOOL) \
106                 --dllname $(TARGET).dll \
107                 --base-file base.tmp \
108                 --output-exp temp.exp \
109                 --def $(TARGET).edf
110         - $(RM) base.tmp
111         $(CC) \
112                 -specs=k32_specs \
113                 -mdll \
114                 -o $(TARGET).dll \
115                 $(TARGET).o \
116                 ../ntdll/ntdll.a \
117                 -Wl,--image-base,$(KERNEL32_BASE) \
118                 -Wl,--file-alignment,0x1000 \
119                 -Wl,--section-alignment,0x1000 \
120                 -Wl,temp.exp
121         - $(RM) temp.exp
122         $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
123
124 clean: 
125         - $(RM) $(CLEAN_FILES)
126
127 .PHONY: clean 
128
129 install: $(FLOPPY_DIR)/dlls/$(TARGET).dll
130
131 $(FLOPPY_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
132         $(CP) $(TARGET).dll $(FLOPPY_DIR)/dlls/$(TARGET).dll
133
134 dist: $(DIST_DIR)/dlls/$(TARGET).dll
135
136 $(DIST_DIR)/dlls/$(TARGET).dll: $(TARGET).dll
137         $(CP) $(TARGET).dll ../../$(DIST_DIR)/dlls/$(TARGET).dll
138
139 WARNINGS_ARE_ERRORS = yes
140 include ../../rules.mak