source: trunk/src/psapi/makefile@ 2783

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

Dependencies (again).

File size: 1.3 KB
Line 
1# $Id: makefile,v 1.7 2000-02-09 23:47:01 bird Exp $
2
3#
4# PD-Win32 API
5#
6# psapi.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 = psapi
23
24OBJS = psapi.obj resource.obj $(PDWIN32_LIB)/dllentry.obj
25
26all: $(TARGET).dll $(TARGET).lib
27
28
29$(TARGET).dll: $(OBJS) $(TARGET).def
30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
31 $(PDWIN32_LIB)/kernel32.lib \
32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB $(RTLLIB_O)
33 $(CP) $@ $(PDWIN32_BIN)
34
35
36lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
37
38$(PDWIN32_LIB)\$(TARGET).lib: $(TARGET).lib
39 $(CP) $** $@
40
41$(TARGET).lib: $(TARGET)exp.def
42 $(IMPLIB) $(IMPLIBFLAGS) $@ $(TARGET)exp.def
43 $(CP) $@ $(PDWIN32_LIB)
44
45$(TARGET)exp.def: $(TARGET).def
46 $(IMPDEF) $** $@
47
48resource.asm: $(TARGET).rc
49 $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
50
51
52dep:
53 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
54 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
55
56!ifndef NODEP
57!include .depend
58!endif
59
60
61clean:
62 $(RM) *.obj *.lib *.dll *.map *.pch \
63 $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib \
64 resource.asm $(TARGET)exp.def
65
66
67
68
69
Note: See TracBrowser for help on using the repository browser.