source: trunk/src/wsock32/makefile@ 4503

Last change on this file since 4503 was 3864, checked in by sandervl, 25 years ago

Changed makefiles for debug & retail odincrt, gdi32-region api wrapper change

File size: 1.8 KB
Line 
1# $Id: makefile,v 1.27 2000-07-19 19:05:27 sandervl Exp $
2
3#
4# Odin32 API
5#
6# wsock32.dll makefile
7#
8
9# Directory macros.
10PDWIN32_INCLUDE = ..\..\include
11PDWIN32_LIB = ..\..\lib
12PDWIN32_BIN = ..\..\$(OBJDIR)
13PDWIN32_TOOLS = ..\..\tools\bin
14
15
16# Compiler, tools, and interference rules.
17!include $(PDWIN32_INCLUDE)/pdwin32.mk
18
19
20# Flag overloads and local macros.
21CLEANEXTRAS = wsock32rsrc.asm
22
23
24# Object files. All objects should be prefixed with $(OBJDIR)!
25OBJS = \
26$(OBJDIR)\wsock32.obj \
27$(OBJDIR)\unknown.obj \
28$(OBJDIR)\wsa.obj \
29$(OBJDIR)\wsastruct.obj \
30$(OBJDIR)\wsock32rsrc.obj \
31$(OBJDIR)\initterm.obj \
32$(OBJDIR)\asyncapi.obj \
33$(OBJDIR)\asyncthread.obj \
34$(OBJDIR)\dbglocal.obj
35
36
37# Target name - name of the dll without extention and path.
38TARGET = wsock32
39
40CXXFLAGS = $(CXXFLAGS) -DNEW_ASYNC
41
42
43# All rule - build objs, target dll, copies dll to bin and makes libs.
44all: $(OBJDIR) \
45 $(OBJDIR)\$(TARGET).dll \
46 $(PDWIN32_BIN)\$(TARGET).dll \
47 lib
48
49
50# Lib rule - build importlibrary (and evt. other libs)
51lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
52
53
54# Dll rule - builds the target dll.
55$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
56 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
57
58
59# Linker file - creates the parameter file passed on to the linker.
60$(OBJDIR)\$(TARGET).lrf: makefile
61 @echo Creating file <<$@
62/OUT:$(OBJDIR)\$(TARGET).dll
63/MAP:$(OBJDIR)\$(TARGET).map
64$(OBJS)
65$(TARGET).def
66so32dll.lib
67tcp32dll.lib
68$(PDWIN32_LIB)\kernel32.lib
69$(PDWIN32_LIB)/user32.lib
70$(PDWIN32_LIB)/$(ODINCRT).lib
71OS2386.LIB
72$(RTLLIB_O)
73<<keep
74
75
76# Dep rule - makes depenencies for C, C++ and Asm files.
77dep:
78 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
79 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
80
81
82# Includes the common rules.
83!include $(PDWIN32_INCLUDE)/pdwin32.post
84
Note: See TracBrowser for help on using the repository browser.