1 # $Id: Makefile,v 1.2 2000/08/11 12:32:53 ekohl Exp $
3 # ReactOS Operating System
6 ifneq ($(HOST
),mingw32-windows
)
7 ifneq ($(HOST
),mingw32-linux
)
8 TARGET_DLL
=$(TARGET_NAME
).a
10 TARGET_DLL
=$(TARGET_NAME
).dll
13 TARGET_DLL
=$(TARGET_NAME
).dll
16 BASE_CFLAGS
= -I..
/..
/include
60 $(TARGET_NAME
).coff
: $(TARGET_NAME
).rc ..
/..
/include/reactos
/resource.h
62 $(TARGET_NAME
).a
: $(OBJECTS
)
63 $(LD
) -r
$(OBJECTS
) -o
$(TARGET_NAME
).a
65 $(TARGET_NAME
).dll
: $(DLLMAIN
) $(OBJECTS
) misc
/$(TARGET_NAME
).def
66 $(LD
) -r
$(OBJECTS
) -o
$(TARGET_NAME
).o
68 --dllname
$(TARGET_NAME
).dll \
69 --def misc
/$(TARGET_NAME
).def \
70 --output-lib misc
/$(TARGET_NAME
).a
72 -specs
=misc
/$(TARGET_NAME
)_specs \
75 -Wl
,--base-file
,base.tmp \
77 ..
/kernel32
/kernel32.a
80 --dllname
$(TARGET_NAME
).dll \
81 --base-file base.tmp \
82 --output-exp temp.exp \
83 --def misc
/$(TARGET_NAME
).def
86 -specs
=misc
/$(TARGET_NAME
)_specs \
88 -o
$(TARGET_NAME
).dll \
90 ..
/kernel32
/kernel32.a \
91 -Wl
,--image-base
,0x77630000 \
92 -Wl
,--file-alignment
,0x1000 \
93 -Wl
,--section-alignment
,0x1000 \
96 $(NM
) --numeric-sort
$(TARGET_NAME
).dll
> $(TARGET_NAME
).sym
98 clean: $(CLEAN_FILES
:%=%_clean
)
100 $(CLEAN_FILES
:%=%_clean
): %_clean
:
103 install: $(FLOPPY_DIR
)/dlls
/$(TARGET_NAME
).dll
105 $(FLOPPY_DIR
)/dlls
/$(TARGET_NAME
).dll
: $(TARGET_NAME
).dll
107 $(CP
) $(TARGET_NAME
).dll
$(FLOPPY_DIR
)\dlls\
$(TARGET_NAME
).dll
109 $(CP
) $(TARGET_NAME
).dll
$(FLOPPY_DIR
)/dlls
/$(TARGET_NAME
).dll
112 dist: $(DIST_DIR
)/dlls
/$(TARGET_NAME
).dll
114 $(DIST_DIR
)/dlls
/$(TARGET_NAME
).dll
: $(TARGET_NAME
).dll
116 $(CP
) $(TARGET_NAME
).dll ..\..\
$(DIST_DIR
)\dlls\
$(TARGET_NAME
).dll
118 $(CP
) $(TARGET_NAME
).dll ..
/..
/$(DIST_DIR
)/dlls
/$(TARGET_NAME
).dll
121 include ..
/..
/rules.mak