source: trunk/src/icmp/makefile@ 3669

Last change on this file since 3669 was 3619, checked in by jeroen, 25 years ago

* empty log message *

File size: 1.6 KB
Line 
1# $Id: makefile,v 1.3 2000-05-27 20:01:34 jeroen Exp $
2#
3# icmp.dll makefile
4#
5# Project Odin Software License can be found in LICENSE.TXT
6#
7#
8
9# Directory macros.
10PDWIN32_INCLUDE = ..\..\include
11PDWIN32_LIB = ..\..\lib
12PDWIN32_BIN = ..\..\$(OBJDIR)
13PDWIN32_TOOLS = ..\..\tools\bin
14
15# Compiler, tools, and interference rules.
16!include $(PDWIN32_INCLUDE)/pdwin32.mk
17
18# Flag overloads and local macros.
19CLEANEXTRAS = icmprsrc.asm
20
21# Object files. All objects should be prefixed with $(OBJDIR)!
22OBJS = \
23$(OBJDIR)\icmp.obj \
24$(OBJDIR)\icmprsrc.obj \
25$(PDWIN32_LIB)\dllentry.obj
26
27# Target name - name of the dll without extention and path.
28TARGET = icmp
29
30# All rule - build objs, target dll, copies dll to bin and makes libs.
31all: $(OBJDIR) \
32 $(OBJDIR)\$(TARGET).dll \
33 $(PDWIN32_BIN)\$(TARGET).dll \
34 lib
35
36
37# Lib rule - build importlibrary (and evt. other libs)
38lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
39
40
41# Dll rule - builds the target dll.
42$(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
43 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
44
45
46# Linker file - creates the parameter file passed on to the linker.
47$(OBJDIR)\$(TARGET).lrf: makefile
48 @echo Creating file <<$@
49/OUT:$(OBJDIR)\$(TARGET).dll
50/MAP:$(OBJDIR)\$(TARGET).map
51$(OBJS)
52OS2386.LIB
53$(PDWIN32_LIB)/WSOCK32.LIB
54$(RTLLIB_O)
55$(PDWIN32_LIB)/odincrt.lib
56$(PDWIN32_LIB)/kernel32.lib
57$(TARGET).def
58<<keep
59
60
61# Dep rule - makes depenencies for C, C++ and Asm files.
62dep:
63 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
64 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
65
66
67# Includes the common rules.
68!include $(PDWIN32_INCLUDE)/pdwin32.post
69
Note: See TracBrowser for help on using the repository browser.