home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vos2-121.zip
/
v
/
ibmcpp
/
vdrawex.mak
< prev
next >
Wrap
Makefile
|
1999-03-08
|
2KB
|
79 lines
# EXAMPLE makefile for V Draw Example Demo application...
#
# creates .exe's under $(BINDIR)
# assumes that vibmcpp or vibmcppd (debug library) already built
# using v.mak or vopengl.mak
#
# to create debug versions enter: nmake /f DEBUG=1 vdraw.mak
# to create release versions enter: nmake /f vdraw.mak
#
include cfgibm.mkh
# ---------------------------------------------------------------------------
SRCDIR=$(VDIR)\drawex
INCDIR=$(VDIR)\drawex
BINFILE=$(BINDIR)\vdrawex.exe
RESFILE=$(OBJDIR)\vapp.res
DEFFILE=$(VSRCDIR)\vos2.def
OBJFILES= $(OBJDIR)\vstartup.obj \
$(OBJDIR)\drawapp.obj \
$(OBJDIR)\drawcnv.obj \
$(OBJDIR)\drawcmdw.obj
# ---------------------------------------------------------------------------
.PRECIOUS: $(BINFILE)
.cpp.obj :
$(CC) $(CFLAGS) /C /Fo$@ $<
{$(SRCDIR)}.cpp{$(OBJDIR)}.obj :
$(CC) $(CFLAGS) /I$(INCDIR) /C /Fo$@ $<
all : $(BINFILE)
dirs:
@-mkdir $(OBJDIR)
@-mkdir $(BINDIR)
clean :
-del $(OBJDIR)\*.*
-del $(BINDIR)\*.*
$(BINFILE) : $(OBJFILES) $(RESFILE) $(VLIB)
-$(CC) /Q /B"$(LFLAGS)" @<<
/Fe$@
$(OBJFILES)
$(LIBS)
$(DEFFILE)
<<NOKEEP
$(RC) $(RFLAGS) $(RESFILE) $@
# ---------------------------------------------------------------------------
# Minimum RESOURCE
$(OBJDIR)\vapp.res :: $(VSRCDIR)\vos2.rc \
$(VSRCDIR)\vapp.ico \
$(VSRCDIR)\collate.bmp
@copy $(VSRCDIR)\vapp.ico .
@copy $(VSRCDIR)\collate.bmp .
$(RC) -r $(RFLAGS) $(VSRCDIR)\vos2.rc $@
@-attrib -r .\vapp.ico
@-attrib -r .\collate.bmp
-del .\vapp.ico
-del .\collate.bmp
# APP
$(OBJDIR)\vstartup.obj : $(VSRCDIR)\$$(@B).cpp
$(OBJDIR)\drawcnv.obj : $(SRCDIR)\$$(@B).cpp $(INCDIR)\$$(@B).h \
$(VINCDIR)\v_defs.h
$(OBJDIR)\drawcnv.obj : $(SRCDIR)\$$(@B).cpp $(INCDIR)\\$$(@B).h \
$(VINCDIR)\v_defs.h
$(OBJDIR)\drawapp.obj : $(SRCDIR)\$$(@B).cpp $(INCDIR)\\$$(@B).h \
$(VINCDIR)\v_defs.h $(INCDIR)\drawcmdw.h $(INCDIR)\drawcnv.h