source: trunk/src/wsock32/makefile@ 2015

Last change on this file since 2015 was 2014, checked in by achimha, 26 years ago

promoted new wsock32 as default

File size: 1.2 KB
Line 
1# $Id: makefile,v 1.15 1999-12-07 20:29:15 achimha Exp $
2
3#
4# PD-Win32 API
5#
6# wsock32.dll makefile
7#
8
9PDWIN32_INCLUDE = ..\..\include
10PDWIN32_LIB = ..\..\lib
11PDWIN32_BIN = ..\..\bin
12PDWIN32_TOOLS = ..\..\tools\bin
13
14!include $(PDWIN32_INCLUDE)/pdwin32.mk
15
16
17CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
18CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
19
20
21TARGET = wsock32
22
23OBJS = wsock32.obj initterm.obj unknown.obj relaywin.obj
24
25all: $(TARGET).dll $(TARGET).lib
26
27
28$(TARGET).dll: $(OBJS) $(TARGET).def
29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
30 pmwsock.lib $(PDWIN32_LIB)\kernel32.lib \
31 $(PDWIN32_LIB)\user32.lib \
32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
33 $(CP) $@ $(PDWIN32_BIN)
34
35$(TARGET).lib: $(TARGET)exp.def
36 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
37 $(CP) $@ $(PDWIN32_LIB)
38
39$(TARGET)exp.def: $(TARGET).def
40 $(IMPDEF) $** $@
41
42wsock32.obj: wsock32.cpp relaywin.h wsock32.h
43unknown.obj: unknown.cpp wsock32.h
44initterm.obj: initterm.cpp
45relaywin.obj: relaywin.cpp relaywin.h wsock32.h
46
47
48clean:
49 $(RM) *.obj *.lib *.dll *~ *.map *.pch
50 $(RM) $(PDWIN32_BIN)\$(TARGET).dll
51 $(RM) $(PDWIN32_LIB)\$(TARGET).lib
52
Note: See TracBrowser for help on using the repository browser.