source: trunk/src/dsound/makefile@ 2912

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

Dependencies (again).

File size: 1.3 KB
Line 
1# $Id: makefile,v 1.16 2000-02-09 23:46:55 bird Exp $
2
3#
4# PD-Win32 API
5#
6# dsound.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 = dsound
23
24OBJS = dsound.obj os2dsound.obj initterm.obj os2sndbuffer.obj os2helper.obj resource.obj
25
26all: $(TARGET).dll $(TARGET).lib
27
28
29$(TARGET).dll: $(OBJS) $(TARGET).def
30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \
31 pmwinx.lib $(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).def
42 $(IMPLIB) $(IMPLIBFLAGS) $@ $**
43 $(CP) $@ $(PDWIN32_LIB)
44
45resource.asm: $(TARGET).rc
46 $(RC) $(RCFLAGS) -o resource.asm $(TARGET).rc
47
48
49dep:
50 $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win \
51 *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
52
53!ifndef NODEP
54!include .depend
55!endif
56
57
58clean:
59 $(RM) *.obj *.lib *.dll *.map *.pch \
60 $(PDWIN32_BIN)\$(TARGET).dll $(PDWIN32_LIB)\$(TARGET).lib \
61 resource.asm $(TARGET)exp.def
62
Note: See TracBrowser for help on using the repository browser.