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
|
# Application description
DESCRIPTION.tutsimp2 = Crystal Space tutorial part two, sprite
#------------------------------------------------------------- rootdefines ---#
ifeq ($(MAKESECTION),rootdefines)
# Application-specific help commands
APPHELP += \
$(NEWLINE)echo $" make tutsimp2 Make the $(DESCRIPTION.tutsimp2)$"
endif # ifeq ($(MAKESECTION),rootdefines)
#------------------------------------------------------------- roottargets ---#
ifeq ($(MAKESECTION),roottargets)
.PHONY: tutsimp2 tutsimp2clean
all apps: tutsimp2
tutsimp2:
$(MAKE_TARGET)
tutsimp2clean:
$(MAKE_CLEAN)
endif # ifeq ($(MAKESECTION),roottargets)
#------------------------------------------------------------- postdefines ---#
ifeq ($(MAKESECTION),postdefines)
vpath %.cpp apps/tutorial/simple2
SIMPLE2.EXE = simple2$(EXE)
INC.SIMPLE2 = $(wildcard apps/tutorial/simple2/*.h)
SRC.SIMPLE2 = $(wildcard apps/tutorial/simple2/*.cpp)
OBJ.SIMPLE2 = $(addprefix $(OUT),$(notdir $(SRC.SIMPLE2:.cpp=$O)))
DEP.SIMPLE2 = CSTOOL CSGFX CSUTIL CSSYS CSGEOM CSUTIL CSSYS
LIB.SIMPLE2 = $(foreach d,$(DEP.SIMPLE2),$($d.LIB))
#TO_INSTALL.EXE += $(SIMPLE2.EXE)
MSVC.DSP += SIMPLE2
DSP.SIMPLE2.NAME = simple2
DSP.SIMPLE2.TYPE = appgui
endif # ifeq ($(MAKESECTION),postdefines)
#----------------------------------------------------------------- targets ---#
ifeq ($(MAKESECTION),targets)
.PHONY: tutsimp2 tutsimp2clean
all: $(SIMPLE2.EXE)
tutsimp2: $(OUTDIRS) $(SIMPLE2.EXE)
clean: tutsimp2clean
$(SIMPLE2.EXE): $(DEP.EXE) $(OBJ.SIMPLE2) $(LIB.SIMPLE2)
$(DO.LINK.EXE)
tutsimp2clean:
-$(RM) $(SIMPLE2.EXE) $(OBJ.SIMPLE2)
ifdef DO_DEPEND
dep: $(OUTOS)simple2.dep
$(OUTOS)simple2.dep: $(SRC.SIMPLE2)
$(DO.DEP)
else
-include $(OUTOS)simple2.dep
endif
endif # ifeq ($(MAKESECTION),targets)
|