File: sndds3d.mak

package info (click to toggle)
crystalspace 0.94-20020412-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 62,276 kB
  • ctags: 52,843
  • sloc: cpp: 274,783; ansic: 6,608; perl: 6,276; objc: 3,952; asm: 2,942; python: 2,354; php: 542; pascal: 530; sh: 430; makefile: 370; awk: 193
file content (78 lines) | stat: -rw-r--r-- 2,061 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Plug-in description
DESCRIPTION.sndds3d = Crystal Space DirectSound 3D sound renderer

#------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION),rootdefines)

# Plug-in-specific help commands
PLUGINHELP += \
  $(NEWLINE)echo $"  make sndds3d      Make the $(DESCRIPTION.sndds3d)$"

endif # ifeq ($(MAKESECTION),rootdefines)

#------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION),roottargets)

.PHONY: sndds3d sndds3dclean
all plugins drivers snddrivers: sndds3d

sndds3d:
	$(MAKE_TARGET) MAKE_DLL=yes
sndds3dclean:
	$(MAKE_CLEAN)

endif # ifeq ($(MAKESECTION),roottargets)

#------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION),postdefines)

vpath %.cpp plugins/sound/renderer/ds3d

ifeq ($(USE_PLUGINS),yes)
  SNDDS3D = $(OUTDLL)sndds3d$(DLL)
  LIB.SNDDS3D = $(foreach d,$(DEP.SNDDS3D),$($d.LIB))
  TO_INSTALL.DYNAMIC_LIBS += $(SNDDS3D)
else
  SNDDS3D = $(OUT)$(LIB_PREFIX)sndds3d$(LIB)
  DEP.EXE += $(SNDDS3D)
  SCF.STATIC += sndds3d
  TO_INSTALL.STATIC_LIBS += $(SNDDS3D)
endif

INC.SNDDS3D = $(wildcard plugins/sound/renderer/ds3d/*.h) \
  $(wildcard plugins/sound/renderer/common/*.h)
SRC.SNDDS3D = $(wildcard plugins/sound/renderer/ds3d/*.cpp) \
  $(wildcard plugins/sound/renderer/common/*.cpp)
OBJ.SNDDS3D = $(addprefix $(OUT),$(notdir $(SRC.SNDDS3D:.cpp=$O)))
DEP.SNDDS3D = CSUTIL CSGEOM CSSYS CSUTIL

MSVC.DSP += SNDDS3D
DSP.SNDDS3D.NAME = sndrdrds3d
DSP.SNDDS3D.TYPE = plugin
DSP.SNDDS3D.LIBS = dsound

endif # ifeq ($(MAKESECTION),postdefines)

#----------------------------------------------------------------- targets ---#
ifeq ($(MAKESECTION),targets)

.PHONY: sndds3d sndds3dclean

sndds3d: $(OUTDIRS) $(SNDDS3D)

$(SNDDS3D): $(OBJ.SNDDS3D) $(LIB.SNDDS3D)
	$(DO.PLUGIN)

clean: sndds3dclean
sndds3dclean:
	$(RM) $(SNDDS3D) $(OBJ.SNDDS3D)

ifdef DO_DEPEND
dep: $(OUTOS)sndds3d.dep
$(OUTOS)sndds3d.dep: $(SRC.SNDDS3D)
	$(DO.DEP)
else
-include $(OUTOS)sndds3d.dep
endif

endif # ifeq ($(MAKESECTION),targets)