source: trunk/src/version/makefile@ 2912

Last change on this file since 2912 was 2712, checked in by bird, 26 years ago

Dependencies (again).

File size: 1.5 KB
Line 
1# $Id: makefile,v 1.12 2000-02-09 23:47:04 bird Exp $
2
3#
4# PD-Win32 API
5#
6# version.dll makefile
7#
8
9PDWIN32_INCLUDE = ..\..\include
10PDWIN32_LIB = ..\..\lib
11PDWIN32_BIN = ..\..\bin
12PDWIN32_TOOLS = ..\..\tools\bin
13
14
15!include $(PDWIN32_INCLUDE)/pdwin32.mk
16
17
18CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE)
19CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE)
20
21
22TARGET = version
23
24OBJS = version.obj resource.obj install.obj info.obj $(PDWIN32_LIB)/dllentry.obj
25
26all: $(TARGET).dll $(TARGET).lib
27
28
29$(TARGET).dll: $(OBJS) $(TARGET).def $(TARGET)exp.def
30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
31 $(PDWIN32_LIB)/kernel32.lib \
32 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \
33 $(PDWIN32_LIB)/crtdll.lib \
34 $(PDWIN32_LIB)/lz32.lib OS2386.LIB $(RTLLIB_O)
35 $(CP) $@ $(PDWIN32_BIN)
36
37
38
39lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
40
41$(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
42 $(CP) $** $@
43
44$(TARGET).lib: $(TARGET)exp.def
45 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
46 $(CP) $@ $(PDWIN32_LIB)
47
48$(TARGET)exp.def: $(TARGET).def
49 $(IMPDEF) $** $@
50
51
52resource.asm: $(TARGET).rc
53 $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
54
55
56dep:
57 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
58 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
59
60!ifndef NODEP
61!include .depend
62!endif
63
64
65clean:
66 $(RM) *.obj *.lib *.dll *.map *.pch \
67 $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib \
68 resource.asm $(TARGET)exp.def
69
Note: See TracBrowser for help on using the repository browser.