1 # $Id: makefile,v 1.9 1999/10/25 06:58:09 rex Exp $
3 # Makefile for ReactOS advapi32.dll
6 BASE_CFLAGS = -I../../include
9 ifneq ($(HOST),mingw32-windows)
10 ifneq ($(HOST),mingw32-linux)
13 DLLTARGET=$(TARGET).dll
16 DLLTARGET=$(TARGET).dll
20 MISC_OBJECTS = misc/dllmain.o misc/shutdown.o \
23 REGISTRY_OBJECTS = reg/reg.o
25 SECURITY_OBJECTS = sec/lsa.o sec/sec.o
26 #SECURITY_OBJECTS = sec/lsa.o sec/rtlsec.o sec/sec.o
28 SERVICE_OBJECTS = service/scm.o
30 TOKEN_OBJECTS = token/token.o
32 RESOURCE_OBJECT = advapi32.coff
34 OBJECTS = $(MISC_OBJECTS) $(REGISTRY_OBJECTS) $(SECURITY_OBJECTS) \
35 $(SERVICE_OBJECTS) $(TOKEN_OBJECTS) \
40 $(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
41 $(RC) $(TARGET).rc $(TARGET).coff
43 $(TARGET).a: $(OBJECTS)
44 $(LD) -r $(OBJECTS) -o $(TARGET).a
46 $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
47 $(LD) -r $(OBJECTS) -o $(TARGET).o
49 --dllname $(TARGET).dll \
52 --output-lib $(TARGET).a
56 ../kernel32/kernel32.a \
57 -specs=$(TARGET)_specs \
60 -Wl,--base-file,base.tmp
63 --dllname $(TARGET).dll \
64 --base-file base.tmp \
65 --output-exp temp.exp \
71 ../kernel32/kernel32.a \
72 -specs=$(TARGET)_specs \
75 -Wl,--image-base,0x20000000 \
76 -Wl,--file-alignment,0x1000 \
77 -Wl,--section-alignment,0x1000 \
80 $(NM) --numeric-sort $(TARGET).dll > $(TARGET).sym
85 include ../../rules.mak