added GDI32 DLL skeleton
[reactos.git] / reactos / lib / gdi32 / makefile
1
2 ifneq ($(HOST),mingw32-windows)
3 ifneq ($(HOST),mingw32-linux)
4 DLLTARGET=gdi32.a
5 else
6 DLLTARGET=gdi32.dll
7 endif
8 else
9 DLLTARGET=gdi32.dll
10 endif
11
12 all: $(DLLTARGET)
13
14 MAIN_OBJECTS = main/dllmain.o
15
16 OBJECTS = $(MAIN_OBJECTS)
17
18 gdi32.a: $(OBJECTS)
19 $(AR) csr gdi32.a $(OBJECTS)
20
21 gdi32.dll: $(DLLMAIN) $(OBJECTS) gdi32.def
22 $(LD) -r $(OBJECTS) -o gdi32.o
23 $(DLLTOOL) --dllname gdi32.dll --def gdi32.def \
24 --output-lib gdi32.a
25 $(CC) -specs=k32_specs -mdll -o junk.tmp \
26 -Wl,--base-file,base.tmp gdi32.o ../ntdll/ntdll.a
27 - $(RM) junk.tmp
28 $(DLLTOOL) --dllname gdi32.dll --base-file base.tmp \
29 --output-exp temp.exp --def gdi32.def
30 - $(RM) base.tmp
31 $(CC) -specs=k32_specs -mdll -o gdi32.dll gdi32.o ../ntdll/ntdll.a\
32 -Wl,--image-base,0x70000000 \
33 -Wl,--file-alignment,0x1000 \
34 -Wl,--section-alignment,0x1000 \
35 -Wl,temp.exp
36 - $(RM) temp.exp
37 $(NM) --numeric-sort gdi32.dll > gdi32.sym
38
39 include ../../rules.mak