source: trunk/src/wsock32/new/makefile@ 10366

Last change on this file since 10366 was 4717, checked in by bird, 25 years ago

New makefile style. (addjustments)

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