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
|
##########################################################################
# This makefile builds the example programs using the Digital Mars D
# compiler. You need to copy the .lib files from support\d\lib to your
# Digital Mars C/C++ compiler/linker lib folder (dm\lib) before compiling
# the programs.
##########################################################################
DC = dmd
IMPORTSDIR = ..\imports
DFLAGS = -O -I$(IMPORTSDIR)
LIBDIR = ..\lib
LIBS = $(LIBDIR)\glfwdll.lib $(LIBDIR)\glu32.lib $(LIBDIR)\opengl32.lib
all: boing.exe keytest.exe gears.exe listmodes.exe mipmaps.exe \
mthello.exe mtbench.exe particles.exe pong3d.exe splitview.exe \
triangle.exe wave.exe
clean:
del *.exe *.obj *.map
boing.exe: boing.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
keytest.exe: keytest.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
gears.exe: gears.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
listmodes.exe: listmodes.d $(IMPORTSDIR)\glfw.d
$(DC) $(DFLAGS) -of$@ $<d $(IMPORTSDIR)\glfw.d $(LIBS)
mipmaps.exe: mipmaps.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
mthello.exe: mthello.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
mtbench.exe: mtbench.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
particles.exe: particles.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
pong3d.exe: pong3d.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
splitview.exe: splitview.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
triangle.exe: triangle.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
wave.exe: wave.d
$(DC) $(DFLAGS) -of$@ $<d $(LIBS)
|