1999-12-15 11:54:08 -05:00
|
|
|
#
|
|
|
|
# File: makeprog.va
|
|
|
|
# Author: David Webster
|
|
|
|
# Created: 1999
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) David Webster
|
|
|
|
#
|
|
|
|
# Makefile environment for building samples. Include this from
|
|
|
|
# your own makefile.
|
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
2001-03-07 13:18:18 -05:00
|
|
|
#
|
|
|
|
# Define inference rules for compiling C++ files.
|
|
|
|
#
|
|
|
|
{$(THISDIR)}.cpp{$(OPATH)}.obj:
|
|
|
|
@echo $<
|
|
|
|
icc @<<
|
|
|
|
$(CPPFLAGS) /Fo$@ /Tp $<
|
|
|
|
$(THISDIR)\$(@B).cpp
|
|
|
|
<<
|
|
|
|
|
|
|
|
all: $(PROGTARGET)
|
1999-12-15 11:54:08 -05:00
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\os2
|
|
|
|
nmake -f makefile.va FINAL=$(FINAL)
|
2001-03-07 13:18:18 -05:00
|
|
|
cd $(THISDIR)
|
1999-12-15 11:54:08 -05:00
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\os2
|
|
|
|
nmake -f makefile.va clean
|
2001-03-07 13:18:18 -05:00
|
|
|
cd $(THISDIR)
|
1999-12-15 11:54:08 -05:00
|
|
|
|
2001-03-07 13:18:18 -05:00
|
|
|
$(PROGRAM).obj:: $(OPATH)\$(PROGRAM).obj
|
|
|
|
$(OPATH)\$(PROGRAM).obj: $(THISDIR)\$(PROGRAM).cpp
|
|
|
|
|
|
|
|
$(PROGRAM).res:: $(PROGRES)
|
|
|
|
$(PROGRES):
|
2002-01-25 17:49:51 -05:00
|
|
|
$(RC) -I $(WXDIR)\include\wx\os2 -D __VISAGECPP__ -r $(PROGRC) $(PROGRES)
|
2001-03-07 13:18:18 -05:00
|
|
|
|
|
|
|
$(PROGRAM).exe:: $(PROGTARGET)
|
|
|
|
$(PROGTARGET): $(OBJECTS) $(PROGRES) $(DUMMYOBJ) $(WXLIB)
|
1999-12-15 11:54:08 -05:00
|
|
|
@echo " Link::Linker "
|
|
|
|
$(LINK) @<<
|
|
|
|
/B" $(LINKFLAGS)" /Fe$@
|
|
|
|
$(LINKLIBS)
|
|
|
|
$(OBJECTS)
|
|
|
|
$(LIBS)
|
|
|
|
<<
|
2001-03-07 13:18:18 -05:00
|
|
|
$(RC) $(PROGRES) $(PROGTARGET)
|
1999-12-15 11:54:08 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase $(OBJECTS)
|
2001-03-07 13:18:18 -05:00
|
|
|
-erase $(OPATH)\*.exe
|
|
|
|
-erase $(OPATH)\*.obj
|
|
|
|
-erase $(OPATH)\*.res
|
|
|
|
-erase $(OPATH)\*.map
|
1999-12-15 11:54:08 -05:00
|
|
|
|