blob: 43e0f17b12a1bbc96efe5010eb307183ce6b8c49 (
plain)
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
|
PROJECT = cvtest
SRC = cvtest.d
DBGDIR = ..\bin\Debug
RELDIR = ..\bin\Release
DMD = c:\l\dmd-2.040\windows\bin\dmd.exe
# DMD = c:\l\dmd-1.045\windows\bin\dmd.exe
CV2PDB_DBG = $(DBGDIR)\cv2pdb.exe
CV2PDB_REL = $(RELDIR)\cv2pdb.exe
DFLAGS = -L/DELEXECUTABLE
LIBS = phobos.lib
default: dbg_exe
release: rel_exe
dbg_exe: $(DBGDIR)\$(PROJECT).exe
rel_exe: $(RELDIR)\$(PROJECT).exe
######################
$(DBGDIR)\$(PROJECT).exe : $(DBGDIR)\$(PROJECT)_cv.exe $(CV2PDB_DBG)
$(CV2PDB_DBG) $(DBGDIR)\$(PROJECT)_cv.exe $@
$(DBGDIR)\$(PROJECT)_cv.exe : $(SRC) Makefile
$(DMD) -of$@ -g -unittest $(DFLAGS) @<<
$(SRC) $(LIBS)
<<NOKEEP
$(RELDIR)\$(PROJECT).exe : $(RELDIR)\$(PROJECT)_cv.exe $(CV2PDB_REL)
$(CV2PDB_REL) $(RELDIR)\$(PROJECT)_cv.exe $@
$(RELDIR)\$(PROJECT)_cv.exe : $(SRC) Makefile
$(DMD) -of$@ -g -release -unittest $(DFLAGS) @<<
$(SRC) $(LIBS)
<<NOKEEP
|